mirror of
https://github.com/status-im/codimd.git
synced 2025-02-26 16:20:40 +00:00
Fix server session not set correctly
This commit is contained in:
parent
74793b516a
commit
85c760d720
3
app.js
3
app.js
@ -101,10 +101,9 @@ app.use(session({
|
||||
resave: false, //don't save session if unmodified
|
||||
saveUninitialized: true, //always create session to ensure the origin
|
||||
cookie: {
|
||||
maxAge: new Date(Date.now() + config.sessionlife),
|
||||
maxAge: config.sessionlife,
|
||||
expires: new Date(Date.now() + config.sessionlife),
|
||||
},
|
||||
maxAge: new Date(Date.now() + config.sessionlife),
|
||||
store: sessionStore
|
||||
}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user