Session expires but not logging user out in Laravel 5
I've gone in to the sessions file in the config folder and changed the lifetime = 1 and expire_on_close = false.
Anything that I put in to the session variable gets wiped out after x amount of minutes that I set in the config file but I'm still not logged out. Am I supposed to create something that logs me out or is Laravel supposed to log me out automatically?
@bashy from my understanding he has deliberately set the session timeout to 1 minute and can see that the session variables are "wiped" after that time period, but says he is still logged in - i.e. the session timeout doesn't appear to log him out.
If "remember me" is set though, when he refreshes the page it will appear as if he was never logged out.
@bashy Yeah. Stuff I put in Session myself expires after the 1 minute lifetime I set but I still don't get logged out. I explicitly set the remember parameter to false in login and I'm testing it right now.
@sitesense Your suggestion to check the remember me option helped!
I had javascript code to pass in to the AuthController if the "remember me" option was checked but I guess it wasn't doing it's job and passing in true even if it wasn't checked. I'll troubleshoot that myself. Thanks for your contribution to the solution everyone!