please check below url it might help you
https://laracasts.com/discuss/channels/laravel/help-is-neededd-on-idle-session-time-out
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, been cursing at my computer for the last 8 hours trying to figure this one out.
Im on Laravel 4.2 and trying to get it so that my session expires and logs me out after 5 minutes. in my session.php file i did:
'lifetime' => 5,
'expire_on_close' => false,
Ill then leave my computer for like 15 minutes, come back, refresh, and im still logged in? I know when my session has expired because a modal appears asking for my login credentials, which usually appears when I've closed my laptop, left it a few hours, then come back to it.
Any thoughts?
Thanks in advance :)
Please or to participate in this conversation.