Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
`connect` Mongoose session store
Tag: 0.0.2.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.coffee
index.js
package.json

README.md

session-mongoose module is an implementation of connect session store using Mongoose.

Implementation Note:

Uses mongeese module to isolate session database from app's default Mongoose database.

Install

npm install session-mongoose

Usage

Create session store:

var SessionMongoose = require("session-mongoose");
var mongooseSessionStore = new SessionMongoose({
    url: "mongodb://localhost/session",
    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.

Something went wrong with that request. Please try again.