Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deekepMaks's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.