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

Update logout to invalidate and regenerate session only if session is present (Issue #486) #487

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

karmendra
Copy link
Contributor

@karmendra karmendra commented Sep 2, 2023

Added check in logout to invalidate and regenerate session only if request has session. This will allow logout to work when 'api' middleware is used with fortify. (Issue #486)

Added check in logout to invalidate and regenerate session only if request has session. This will allow logout to work when 'api' middleware is used with fortify
@karmendra karmendra changed the title Update logout to invalidate and regenerate session only if session is present Update logout to invalidate and regenerate session only if session is present (Issue #486) Sep 2, 2023
@driesvints
Copy link
Member

As said on the issue, this isn't a real problem since an API is stateless and therefor should never use this method.

@taylorotwell taylorotwell merged commit dd17853 into laravel:1.x Sep 4, 2023
13 checks passed
@karmendra karmendra deleted the logout-I486 branch September 6, 2023 10:53
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