connect-session-sequelize

Session store for connect-session using sequelize

npm install connect-session-sequelize
7 downloads in the last day
74 downloads in the last week
196 downloads in the last month

Connect Session Store using Sequelize

Build Status

connect-session-sequelize is a SQL session store using Sequelize.js.

Installation

Please note that the most recent version requires express 4. If you use express 3 you should install version 0.0.5 and follow the instructions in the previous README.

$ npm install connect-session-sequelize

Options

  • db a successfully connected Sequelize instance

Usage

var connect = require('connect')
    // for express, just call it with 'require('express-session').Store'
    , SequelizeStore = require('connect-session-sequelize')(connect.session.Store);

connect().use(connect.session({
    store: new SequelizeStore(options)
    , secret: 'CHANGEME'
}));

License

MIT

npm loves you