var dbStore=require(‘connect-mongo’)(express);
app.use(express.session({ secret:’abc’, store:new dbStore({db:sittings.dbName}) } ));
这些代码用了以后报错500 TypeError: Cannot read property ‘connect.sid’ of undefined
var dbStore=require(‘connect-mongo’)(express);
app.use(express.session({ secret:’abc’, store:new dbStore({db:sittings.dbName}) } ));
这些代码用了以后报错500 TypeError: Cannot read property ‘connect.sid’ of undefined