[eluser]Cinghius[/eluser]
I am writing to know how to check if the user has logged in or not, before doing the redirect on the home page, and display other content than the home page as not logged in.
thank you so much
[eluser]WanWizard[/eluser]
That greatly depends on the mechanism used for authentication and authorisation, so there isn't one single answer.
[eluser]Cinghius[/eluser]
I have a controller through a login function and various methods to check whether the user can log in, or not. In the end, does a redirect on the home page. I would know, if the user who is logged on the homepage, sees things other than not logged.
To do this, I would have to work on the method $ this-> tank_auth-> is_logged_in ()
[eluser]WanWizard[/eluser]
I'm not familiar with tank_auth, but I assume is has a method to check if a user is logged on or not?
A quick check of the library shows that is indeed is_logged_in(), so if you know that, what is your question?
[eluser]WanWizard[/eluser]
This doesn't really explain much, other than it's pretty useless to load a view and then redirect...