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

Add hooks to indicate whether a session should be given/updated #19

Open
robrwo opened this issue Nov 27, 2013 · 2 comments
Open

Add hooks to indicate whether a session should be given/updated #19

robrwo opened this issue Nov 27, 2013 · 2 comments

Comments

@robrwo
Copy link

robrwo commented Nov 27, 2013

For websites, giving a session cookie and inserting/updating session data for every page hit is unnecessary, and even adds too much load for high traffic sites.

There should be a hook that tells the session state whether to send a cookie, and tells the session store whether the session should be created or updated. By default, these methods would always be true, but one should be able to set a flag to check the session for any actual changes.

@miyagawa
Copy link
Member

@robrwo
Copy link
Author

robrwo commented Nov 27, 2013

@miyagawa Thanks. I'll take a look at it.

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

No branches or pull requests

2 participants