So, I have a two-week lifespan for my sessions, so users donβt need to log in or out several times. However, today I noticed something, if you log out, it destroys your session, but saves your cookie in memory. This causes problems because if you switch accounts to the same computer 8-10 times, you get an error with 400 errors because you are sending too much information. Now 8-10 times in the normal lifetime of the cookie is more visible, but when your life is two weeks, I ran into problems.
This is a screenshot of what happens when you enter and exit several times ago.
How to delete a cookie for life when a user logs out? So far i tried
Auth::logout(); Session::flush();
php cookies session laravel laravel-4
CMOS
source share