Jan 28, 2024
0
Level 1
Logout doesn't work
I authorize users like this:
Auth::loginUsingId($userID, true);
The logout looks like this:
Auth::logout();
$request->session()->invalidate();
$request->session()->regenerateToken();
When i log out, the remember_web_ cookie is cleared and the session is updated, but after a reload I’m back in the account (without remember_web_)
Why is this happening and what needs to be done?
Please or to participate in this conversation.