lundi 1 octobre 2018

auth()->check() returning false after successful login

I'm using Laravel 5.7, I can successfully log in, a session record with the correct ID is in the database

If I try to visit /login then I'm redirected, so the application is telling me that I'm logged in

If I use Auth::check() then it is returning false, and user() is null

I don't understand how I can be half logged in and half logged out

I don't really know what code to show because everything is fresh installed

If I delete the session record out of the database then I'm able to view /login again, but even if I log in again then check() still fails



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire