[eluser]ladooboy[/eluser]
Hi Ben,
Sorry for the confusion. No, I want the remember function.
It was just that the logged_in function would always be called twice on any controller, which is not optimal when you add some extra features and db queries.
But I was very tired anyway and my mind was blocked yesterday ^^.
I could do another function:
Code:
function validate_session()
which validates the user sessions with the DB details.
And on all local controllers I will do:
Code:
If (!logged_in() || !validate_session())
redirect('auth/login');
In this way the validating will only be executed once per controller.