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

samfrjn11's avatar

Auth not working on other computer

Hi,

I've been developing a CRM application for a couple of months now. I upgraded from L5.2 to 5.3 (currently 5.3.30 installed) a couple of months ago. Now I wanted to show the CRM to one of my collegues on their computer, but when I try to login, it redirects to the /dashboard, but then get's 302 redirected (unauthenticated) back to the login form. After a few tries I finally get to the /dashboard.

Then when I browse the application, I randomly get logged out and redirected to the login page.

I'm hosting on a Mac MINI using php -S 192.168.1.20:8888 -t public. If I use the app on this Mac Mini, everything works fine. But as soon as I try on another computer I'm having issues.

Any ideas? Been searching the internet for a week now, I'm out of ideas and out of energy...

Thanks in advance!

0 likes
4 replies
cviv's avatar

Try checking if they both have the same time... Tried this with mine because a session var have a definite lifetime in your config/session.php

jlrdw's avatar

Also check storage folder for correct permissions.

samfrjn11's avatar

@cviv Don't see why the time would be an issue since everything is stored server-side. I mean, if I'd put it on a real webhosting server and a foreign user visits my app, they won't be able to login at all according to your answer...

@jlrdw Storage folder has 777 permission

Please or to participate in this conversation.