Welcome Guest, Not a member yet? Register   Sign In
How to redirect when session is dead?
#1

[eluser]julgus[/eluser]
I have this code in my controller. The if statement to check if the session is alive seems to work but not the redirect? No redirect is done? Why?

Code:
if (!isset($data['loggedin']) OR (!$data['loggedin']))
    redirect('/login');



/regards
#2

[eluser]julgus[/eluser]
I found it.. my error.. as a newbie I put the redirect before I loaded the libs...




Theme © iAndrew 2016 - Forum software by © MyBB