mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
express-session: Don't save uninitialized sessions
This should avoid frivolous session records, such as when the user gets a 404 (unless login was required to see the 404).
This commit is contained in:
parent
7255dd7ef0
commit
ec10700dff
2 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,7 @@ exports.restartServer = async () => {
|
|||
secret: settings.sessionKey,
|
||||
store: sessionStore,
|
||||
resave: false,
|
||||
saveUninitialized: true,
|
||||
saveUninitialized: false,
|
||||
// Set the cookie name to a javascript identifier compatible string. Makes code handling it
|
||||
// cleaner :)
|
||||
name: 'express_sid',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue