Answer the question
In order to leave comments, you need to log in
Why does express session kill the session when the application is idle?
I use express-session in my app:
app.use(session({
genid: function(req) {
return uuid.v4();
},
saveUninitialized: false,
resave: false,
cookie: {
name: config.get('session_cookie_name'),
maxAge: (60*60*1000*24) // Сутки
} ,
key: config.get('session_cookie_name'),
secret: config.get('session_cookie_secret'),
proxy: true,
store: MongoStore
}));
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