I try to use a post_controller_constructor hook point to create a authentication.
My problem is that i always get in an infinite loop.
So the flow goes basically like this:
in the codeigniter.php file the hook is called.
The hook has an authentication method that checks if 'logged_in' is set in the session, else redirects to a login controller, which displays the login view form, and sets the session after. Then i tried to redirect back to the hook.
I don't know what or where i have to redirect too after filling the session in.
It's just for the purpose of learning about hooks, so please don't suggest an alternative method.