Skip to content

[5.4] On logout, invalidate session instead of regenerating it - #20107

Merged
taylorotwell merged 1 commit into
laravel:5.4from
themsaid:invalidateSession
Jul 17, 2017
Merged

[5.4] On logout, invalidate session instead of regenerating it#20107
taylorotwell merged 1 commit into
laravel:5.4from
themsaid:invalidateSession

Conversation

@themsaid

Copy link
Copy Markdown
Member

Calling regenerate() will cause a new session ID to be generated without deleting the old session data, while the request is being terminated the new session store will be saved, leaving the old one un-saved, so flush() won't really make any difference.

@taylorotwell
taylorotwell merged commit 698a635 into laravel:5.4 Jul 17, 2017
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.

2 participants