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

ilex01's avatar
Level 5

Always redirected to the /login page when I try to log in or sign up on the site.

I'm always redirected to the /login page when I try to log in or sign up on the site.

The user is correctly saved in the site's database after signing up. However, after signing up, the user is redirected to the /login page, and logging in is not possible.

in routes/web.php:

0 likes
3 replies
ilex01's avatar
Level 5

It works without a problem on localhost.

JussiMannisto's avatar
Level 50

What session driver are you using? Have you verified that session is working correctly? It sounds like it's not.

1 like
Snapey's avatar

Did you mispost your routes file instead of your auth code?

Please or to participate in this conversation.