Longer sessions

master
Thomas Forgione 4 years ago
parent 060398d24b
commit 3842fb56ec
No known key found for this signature in database
GPG Key ID: 63D3E1A00D54FD76

@ -31,7 +31,10 @@ function startServer() {
app.set('trust proxy', 1);
app.use(cookieParser(config.SECRET_KEY));
app.use(session({keys:[config.SECRET_KEY]}));
app.use(session({
keys: [config.SECRET_KEY],
maxAge: 365 * 24 * 60 * 60 * 1000
}));
// Log request and time to answer
app.use(function(req, res, next) {

Loading…
Cancel
Save