diff options
author | Wu Cheng-Han | 2015-12-30 00:34:32 -0500 |
---|---|---|
committer | Wu Cheng-Han | 2015-12-30 00:34:32 -0500 |
commit | db324c562493c92b9fe3eeb03f27737a3d1e303d (patch) | |
tree | 37c8c7806a692ad3578977188ea7238bcfbfc758 | |
parent | f5010af4f1c90ca518ba6983ba009c9c47743240 (diff) |
Now always create session to ensure cookie authorize can proceed
Diffstat (limited to '')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |