CodeIgniter Forums
Session handler problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Session handler problem (/showthread.php?tid=5154)



Session handler problem - El Forum - 01-08-2008

[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