Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

primo's avatar
Level 3

session timeout

Hi

Is there a way to to have a forever session timeout in laravel 5.2 ? for example if a user logged in to not log him out unless he chooses to.

any ideas ?

Thx

0 likes
5 replies
EmilMoe's avatar

Any reason you couldn't use the built in remembering users functionality? If I'm not mistaking, it lasts a few years.

Does it use cookies? It don't mention so in the docs, but I assume it's (almost) impossible without.

SaeedPrez's avatar

You can see here on Chrome dev, I just logged in, the cookie expires in 5 years.

1 like

Please or to participate in this conversation.