Skip to content

Commit

Permalink
docs: fix extending the session expiration example
Browse files Browse the repository at this point in the history
closes #73
  • Loading branch information
vice authored and dougwilson committed Mar 15, 2017
1 parent 957ffce commit 8c96de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ app.use(cookieSession({
// Update a value in the cookie so that the set-cookie will be sent.
// Only changes every minute so that it's not sent with every request.
app.use(function (req, res, next) {
req.session.nowInMinutes = Date.now() / 60e3
req.session.nowInMinutes = Math.floor(Date.now() / 60e3)
next()
})

Expand Down

0 comments on commit 8c96de3

Please sign in to comment.