README
express-monogo-rs-session
Express 4, MongoDB replica set session driver.
Wrote this because I couldn't find a driver that worked against mongoose/monog in the way I needed.
Installing
npm install express-monogo-rs-session
Using
var expressSession = require('express-session');
var mongoSession = require('express-monogo-rs-session')(expressSession);
var app = express();
app.use(expressSession({
store: new MongoSession(),
secret: 'password',
name: 'name'
}));
The driver reads the connection string from
config.Mongo.Session
Making this configurable is on my to do list.