Longer sessions
This commit is contained in:
parent
060398d24b
commit
3842fb56ec
5
index.js
5
index.js
|
@ -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…
Reference in New Issue