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

Darshan_'s avatar

Laravel Session Expiry

Hello All,

I have my laravel website up and running.

I uploaded it on my godaddy server but now the session wont work while redirecting from one page to another.

As godaddy provides no technical support for installing laravel on the server, we did it manually and now session doesnt work.

Is this behaviour normal or do we need to add/modify the setup of laravel on server?

Do we need to change the config/session.php file? If yes, what should it be?

Everything works fine on localhost, Also tried on different server where the configuration

0 likes
2 replies
freeccboy's avatar

I think I had a similar problem in hostinger, and solve it by uploading the version of php to 7.2 in the configuration, in your case you should be able to configure it in goodady

Darshan_'s avatar

Do I have to change any more configuration other than these? Do I have to change app/config/session.php for Secured connection?

Please or to participate in this conversation.