Why do you think it's an issue?
That's how "remember me" works. You store a cookie in the browser and then check against it if the session is expired.
What is the vulnerability in this?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My app is built on Laravel 8.x and deployed via Vapor and uses Redis as session driver.
I noticed this odd behaviour, where if you login to the app & copy the cookie, then logout and import the cookie and refresh the page, you are logged back in. Logged out session did not get invalidated.
Here are the steps to re-produce:
I followed the instructions on https://laravel.com/docs/8.x/authentication#logging-out to implement the logout functionality, but this doesn't seem to be working?
Auth::logout();
$request->session()->invalidate();
$request->session()->regenerateToken();
I am not able to re-produce this with the app running locally in Apache + PHP, this behaviour is only observed on my vapor deployed instance?
Any idea what the issue might be? How do you properly logout, so that cookie from previous session can't be used again?
Please or to participate in this conversation.