Best Session Storage Middleware for Express + MongoDB

connect-mongo (https://github.com/kcbanner/connect-mongo) looks better then others.

express-session-mongo and connect-session-mongo are very old and based on old version of mongodb driver.

session-mongoose based on mongoose, that slower than mongodb driver.

I think connect-mongo is the best choose.



connect-mongodb-session

  • https://www.npmjs.com/package/connect-mongodb-session
  • Published 3 months ago
  • connect-mongodb-session: MongoDB-backed session storage for connect and Express. Meant to be a well-maintained and fully-featured replacement for modules like connect-mongo
  • Google also now shows this one first.

connect-mongo

  • https://www.npmjs.com/package/connect-mongo
  • Published a year ago