Excess redirection in Codeigniter

1

When I try to run my application in codeigniter the page stops loading and an error message is displayed saying that there is a redirection in excess. In the application, I need to be redirecting the user whenever there is no particular session, and for this I am using the redirect () function

Any help is welcome, I thank you right away

Prints of the error and part of the redirect code: link

    
asked by anonymous 28.12.2017 / 21:17

1 answer

2

Is your verification done on your / ?

If yes, you are entering an infinite loop when redirecting back to / if the user is not logged in.

Instead of redirecting to / , send to the /login page instead and ensure that this page is not checked and redirected if the user is not logged in.

    
29.12.2017 / 01:07