You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: this library is not maintained anymore, please don't submit anymore pull requests except for bugfixes
NeDB-backed session store for the Connect/Express session middleware. Only tested with Express 3, not 4
Install and test
npminstallconnect-nedb-sessionnpmtest
How to use
// If you use Connect alonevarconnect=require('connect'),session=connect.session,NedbStore=require('connect-nedb-session')(session);// If you use Expressvarexpress=require('express'),session=express.session,NedbStore=require('connect-nedb-session')(session);// If you use Express 4.xvarexpress=require('express'),session=require('express-session'),NedbStore=require('connect-nedb-session')(session);// Use with the session middleware (replace express with connect if you use Connect)server.use(session({secret: 'yoursecret',key: 'yoursessionkey',cookie: {path: '/',httpOnly: true,maxAge: 365*24*3600*1000// One year for example},store: newNedbStore({filename: 'path_to_nedb_persistence_file'})}));
License
MIT
About
NeDB-backed session store for the Connect/Express session middleware