Answer the question
In order to leave comments, you need to log in
The connection is not closed. What am I doing wrong?
var session = require('express-session');
var MongoStore = require('connect-mongo')(session);
var mongoose = require('mongoose');
var mongoose_store = new MongoStore({mongooseConnection: mongoose.connection});
app.use(session({
secret:conf.get('session:secret'),
key:conf.get('session:key'),
cookie:conf.get('session:cookie'),
saveUninitialized:false,
resave:false,
store: new MongoStore({ mongooseConnection: mongoose.connection })
}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question