mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -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
|
||||
|
|
|
@ -322,6 +322,7 @@ exports.cookie = {
|
|||
* https://stackoverflow.com/q/41841880 for discussion.
|
||||
*/
|
||||
sameSite: 'Lax',
|
||||
sessionLifetime: 10 * 24 * 60 * 60 * 1000,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue