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

ehtasham's avatar

Error: Redirect to login page if click on any link laravel 4.2

We are having problems with logins persisting. If we click on route protected with "auth.admin" filter, we will end up being prompted to log in again, despite what should be a valid session. This is happening repeatedly across the site for many different workflows. We are using laravel 4.2

Any one have experience like this?

Thanks

0 likes
1 reply
stayallive's avatar
Level 3

Usually when this happens it is because the session cookie is set on the wrong domain. So check your cookies out and make sure the correct domain is set.

1 like

Please or to participate in this conversation.