From db324c562493c92b9fe3eeb03f27737a3d1e303d Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 30 Dec 2015 00:34:32 -0500 Subject: Now always create session to ensure cookie authorize can proceed --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index cf82f443..21b9a9a0 100644 --- a/app.js +++ b/app.js @@ -96,7 +96,7 @@ app.use(session({ name: config.sessionname, secret: config.sessionsecret, resave: false, //don't save session if unmodified - saveUninitialized: false, //don't create session until something stored + saveUninitialized: true, //always create session to ensure the origin cookie: { maxAge: new Date(Date.now() + config.sessionlife), expires: new Date(Date.now() + config.sessionlife), -- cgit v1.2.3