Session handler problem

#1
[eluser]h54yo[/eluser]
Hi,

I have problem when handling session to my page, let sewe I have login system, when I have logged to my web I set CI_Session, and in login page I set session handler in my controller like this :

Code:
function index()
{
            if ($this->sessionCheck() == false)
                $this->load->view('index',$this->data);
            else
                redirect('/home','refresh');
}

I assume that when I have logged in and I try to re-type from my browser to login page it will automatically redirect to my home page. but it not work properly , redirect to slow. I have to refresh my page and then redirect done

What's wrong with my code???

thank's


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.