Skip to content

Commit

Permalink
Set maxAge idle session to four (4) hours (#1202)
Browse files Browse the repository at this point in the history
* This can be tweaked to slightly larger but the default of two weeks server side is too much. Sync both client access and server expiration to this value.
* Going to bump all stored sessions in a few moments

Related to #604

Auto-merge
  • Loading branch information
Martii authored Oct 26, 2017
1 parent f4bd642 commit 01ff167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ app.use(session({
resave: false,
saveUninitialized: false,
unset: 'destroy',
cookie: { maxAge: null },
cookie: {
maxAge: 4 * 60 * 60 * 1000 // 4 hours in ms
},
secret: sessionSecret,
store: sessionStore
}));
Expand Down

0 comments on commit 01ff167

Please sign in to comment.