mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
express-session: Set a finite cookie lifetime
This commit is contained in:
parent
ec10700dff
commit
023e58cfe6
4 changed files with 27 additions and 1 deletions
|
@ -186,6 +186,7 @@ exports.restartServer = async () => {
|
|||
// cleaner :)
|
||||
name: 'express_sid',
|
||||
cookie: {
|
||||
maxAge: settings.cookie.sessionLifetime || null, // Convert 0 to null.
|
||||
sameSite: settings.cookie.sameSite,
|
||||
|
||||
// The automatic express-session mechanism for determining if the application is being served
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue