Longer sessions

This commit is contained in:
Thomas Forgione 2019-01-21 04:10:48 +01:00
parent 060398d24b
commit 3842fb56ec
No known key found for this signature in database
GPG Key ID: 63D3E1A00D54FD76
1 changed files with 4 additions and 1 deletions

View File

@ -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) {