diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -139,7 +139,9 @@ app.use(session({ saveUninitialized: true, // always create session to ensure the origin rolling: true, // reset maxAge on every response cookie: { - maxAge: config.sessionLife + maxAge: config.sessionLife, + sameSite: true, + secure: config.useSSL || config.protocolUseSSL || false }, store: sessionStore })) |