Skip to content

Commit

Permalink
Add note about manual session.save()
Browse files Browse the repository at this point in the history
Issue: #292
  • Loading branch information
wavded committed Jan 30, 2020
1 parent d9fe6e0 commit f31dd4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Otherwise, it will expire the session using the `ttl` option (default: `86400` s

**Note**: The TTL is reset every time a user interacts with the server. You can disable this behavior in _some_ instances by using `disableTouch`.

**Note**: `express-session` does not update `expires` until the end of the request life cycle. Calling `session.save()` manually beforehand will have the previous value.

##### disableTouch

Disables re-saving and resetting the TTL when using `touch` (default: `false`)
Expand Down

0 comments on commit f31dd4b

Please sign in to comment.