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

Flush entire session on logout, not just auth key #354

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

LukeTowers
Copy link
Contributor

This brings the logout logic more in line with Laravel (see https://github.com/laravel/framework/blob/9f313ce9bb5ad49a06ae78d33fbdd1c92a0e21f6/src/Illuminate/Session/Middleware/AuthenticateSession.php#L92). This also fixes an issue where if you login to a user account, change the locale, logout, login to different user, change locale to different locale, logout, then login to the original user account; the locale from the second user account will be applied.

This brings the logout logic more in line with Laravel (see https://github.com/laravel/framework/blob/9f313ce9bb5ad49a06ae78d33fbdd1c92a0e21f6/src/Illuminate/Session/Middleware/AuthenticateSession.php#L92). This also fixes an issue where if you login to a user account, change the locale, logout, login to different user, change locale to different locale, logout, then login to the original user account; the locale from the second user account will be applied.
@LukeTowers LukeTowers merged commit f73fea1 into develop Oct 11, 2018
@LukeTowers LukeTowers deleted the fix/persistentsessiondata branch October 11, 2018 17:20
@LukeTowers LukeTowers restored the fix/persistentsessiondata branch October 11, 2018 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant