node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


Express Mongo Session Store

Use a mongodb instance to store session data. It uses Mongo-Start to provide the mongo connection. Just have the required config for connecting to your mongodb instance and there you go.

var session = require('express-session');
var MongoStore = require('express-mongo-session')(session);
    secret: 'foo',
    store: new MongoStore(options)