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

jeghxi's avatar

Sessions and authentication killed in Laravel 5, running on AWS

I've a VPS Provided from Amazon web services , and I've deployed more than 6 "laravel" projects which is worked perfectly , but I've same issue for 3 projects , which is sessions and authentication not working at all , although it success and redirect but with a killed session ,, i tried to deploy these project on other shared hosting and it worked perfectly , i want to know the problem that cause this failure on my AWS

0 likes
3 replies
jeghxi's avatar

What are the steps should I follow to solve this problem? And if I migrate my VPS to dedicated server, would it help to get rid of this issue?

lostdreamer_nl's avatar

Getting any server outside of AWS would probably solve this completely yes.

You could check with a simple

dd($_REQUEST, $_SERVER, getallheaders());

To see if your server domain is setup correctly, if it is not, cookies wont work.

Please or to participate in this conversation.