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

hossein-zare's avatar

Getting unauthenticated message when logging in with different credentials

Hello,

Laravel Version: 7.17.2 - PHP Version: 7.4.1 - Session Driver: Database

I'm using ajax to login, When i log out and login with a different account it says {"message": "unauthenticated"} I also checked the sessions table, It creates two records for the same account, one's user_id is null the other's is 2, instead of updating the null record or deleting it. This happens time to time.

I've not modified the authentication system. Deleting cookies, Deleting session records from the table doesn't give a hand.

0 likes
0 replies

Please or to participate in this conversation.