mongoose-session-store

express session store implementation using Mongoose

npm install mongoose-session-store
1 downloads in the last week
8 downloads in the last month

Implementation Note:

Needs a mongo active connection

Install

npm install mongoose-session-store

Usage

Create session store:

var MongooseSession = require("mongoose-session-store");
var MongooseSessionStore = new MongooseSession({
    interval: 120000 // expiration check worker run interval in millisec (default: 60000)
});

Configure Express

var express = require("express");
...
// configure session provider
app.use(express.session({
    store: MongooseSessionStore,
    ...
});
...

That's it.

npm loves you