Mongo session store for express
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
index.js
package.json
readme.md

readme.md

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)
}));