//With express4: var session = require('express-session'); var MongoStore = require('connect-mongo')(session); app.use(session({ secret: settings.cookie_secret, store: new MongoStore({ db : settings.db, }) }));
解决Express4的connect-mongo Session问题。
//With express4: var session = require('express-session'); var MongoStore = require('connect-mongo')(session); app.use(session({ secret: settings.cookie_secret, store: new MongoStore({ db : settings.db, }) }));
解决Express4的connect-mongo Session问题。
2014-10-12
举报