samedi 18 avril 2020

Laravel 5.1 Authentication - Auth::logout() Logout Doesn't Always Work

I am using Laravel 5.1 and the native Auth::logout() method to log users out. I noticed that every once in a while after hitting this endpoint, the user isn't actually logged out. If I refresh the login page (which is where the user is redirected to after hitting the logout endpoint), I am forwarded to the index page (where a logged-in user is supposed to be forwarded to).

This isn't consistent behavior though - it only occurs 1 out of 5 logout attempts. There is a question talking about 5.1's logout bug here. But this seems to be a different bug since it happens on every logout attempt.

Has anyone every run into this issue?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire