mirror of https://github.com/status-im/codimd.git
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…
Reference in New Issue