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

laraveldev2020's avatar

Session logs out automatically in seconds after login.(esp. on windows)

Hi , I am working on an application in laravel. I am facing a problem, my session expires within some seconds after i log in. It some times also happens when i send an ajax request. Please suggest some solution for this problem.

Thanks in advance.

0 likes
1 reply
isaackearl's avatar

is there a possibility that your session "driver" is set to array? the array driver doesn't persist through requests. (just an idea, otherwise I'm not sure).

Please or to participate in this conversation.