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

Allow to set system.session.timeout to 0 to clear session on browser close #1538

Merged
merged 3 commits into from
Jun 29, 2017

Conversation

flaviocopes
Copy link
Contributor

@flaviocopes flaviocopes commented Jun 23, 2017

(Refs getgrav/grav-plugin-login#121)

We didn’t allow 0 as an expiry value for setcookie http://php.net/manual/it/function.setcookie.php.

If “remember me” is not checked, and the browser is closed AND it’s not set to continue your session (see https://stackoverflow.com/a/10772420/205039), the session will be cleared.

Remember: Admin has its own session lifetime setting in its configuration.

@flaviocopes flaviocopes merged commit 08920d5 into develop Jun 29, 2017
@rhukster rhukster deleted the feature/session-browser-close branch October 1, 2018 18:38
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.

1 participant