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

PLorand's avatar

Production Session Issue

I just finished developing my project which was running correctly on my Vagrant machine.

I had to upload the whole project to my online host to a sub folder. I did required file splitting. The Laravel main files in the root folder besides the "public" folder, the "public" folder content was copied in "/public_html/project". Changed the paths inside the index.php so the paths point outside to the root folder where my Laravel core files can be found.

Once everything was uploaded the website was running, the content was displayed from the database, as soon as I tried to use a feature which used Session everything crashed. The session variable always had the value of null.

I kept trying different configurations for the config/session.php file with no luck.

Any ideas?

0 likes
0 replies

Please or to participate in this conversation.