From 937e982109793b24cee33ed55aa8b855cee26ad1 Mon Sep 17 00:00:00 2001 From: Jordan Matelsky Date: Mon, 26 Sep 2016 12:13:24 -0400 Subject: [PATCH] Remove expiry from cookies As per [this issue](https://github.com/expressjs/session/issues/365) --- app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.js b/app.js index 339ff6c2..86fc28b3 100644 --- a/app.js +++ b/app.js @@ -116,8 +116,7 @@ app.use(session({ saveUninitialized: true, //always create session to ensure the origin rolling: true, // reset maxAge on every response cookie: { - maxAge: config.sessionlife, - expires: new Date(Date.now() + config.sessionlife) + maxAge: config.sessionlife }, store: sessionStore }));