express-mongo-session
v1.0.2
Published
MongoDB session store for express
Downloads
12
Maintainers
Readme
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);
app.use(session({
secret: 'foo',
store: new MongoStore(options)
}));