Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ttl option. #45

Merged
merged 1 commit into from
Jun 14, 2012
Merged

Added ttl option. #45

merged 1 commit into from
Jun 14, 2012

Conversation

SlNPacifist
Copy link
Contributor

Added ttl option, which comes prior to cookie maxAge. Now session ttl is (options.ttl, cookie.maxAge, oneDay) whichever defined first.

If options.ttl is not defined, previous behaviour is preserved.

… is (options.ttl, cookie.maxAge, oneDay) whichever defined first.

If options.ttl is not defined, previous behaviour is preserved.
tj added a commit that referenced this pull request Jun 14, 2012
@tj tj merged commit d3c86fc into tj:master Jun 14, 2012
@ralyodio
Copy link

I am setting req.cookie.maxAge to 2 weeks in the future, will redis pick this up for me as a ttl on that session, or do I need to do somethign else.

@SlNPacifist
Copy link
Contributor Author

Yes, cookie max age is used as ttl if it is not specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants