Here are my pages:
Redirect page: if the user has an open session, redirect to the corresponding resource; otherwise redirect to the login page
Login page: if the login details are valid, redirect to $ _SERVER ['HTTP_REFERER'] still display the login page
When you visit the redirect page, it sees that you do not have a valid session and is redirected to the login page. After that, you can log in without problems, but after authentication, I get "This web page has a redirect cycle." Pages in Chrome.
This is not a true loop, as there are several exit paths (IE provides valid login information and goes to the target resource, provides invalid login and error data, etc.). But I see the confusion in the browser (moving from a to b to another).
Any ideas how I can solve this problem?
Greetings
source
share