Check the settings for session. I am on 5.5 now, and have no problems.
Oct 25, 2017
3
Level 1
User automatically Logged out after a few seconds Laravel 5.4
Hi, just upgraded to 5.4 and im using the exact same method from low versions to login the user
Auth::attempt which works fine but my user gets logged out just seconds after. Anyone experienced this before ? If so, how did you fix it ?
Level 1
Managed to figure it out.. Since i use laravel for pretty much all my projects, I forgot to change the session name, as a result, one session was overwriting the other, causing the auto-loggout.. So if you have multiple laravel projects running, make sure they all have different session names. Hope this helps someone in future !
1 like
Please or to participate in this conversation.