Skip to content

Commit

Permalink
Merge pull request #172 from j6k4m8/patch-1
Browse files Browse the repository at this point in the history
Remove expiry from cookies
  • Loading branch information
jackycute committed Sep 26, 2016
2 parents 21afa2d + 937e982 commit 732d5bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));
Expand Down

0 comments on commit 732d5bc

Please sign in to comment.