Is it working as expected, will it last 60 minutes and expire when browser is closed, which is what should happen. If a browser is closed you should want that session gone.
Feb 27, 2016
3
Level 5
Session lifetime and expire_on_close
Ran into an interesting issue. My app requires a session idle time of 60 minutes. So in config/session.php:
'lifetime' => 60,
'expire_on_close' => false,
However I want to also make sure that the session expires when the browser is closed. Unfortunately if I do that then it ignores the lifetime:
'lifetime' => 60,
'expire_on_close' => true,
Anyone have a solution for this where we want a session lifetime AND also have it expire on close?
Please or to participate in this conversation.