Welcome Guest, Not a member yet? Register   Sign In
Help on logout on CI 2.0.2
#11

[eluser]R_Nelson[/eluser]
not sure if this will help but this is what i use for log out
Code:
$this->session->sess_destroy();
        $data = array(                                
                'is_logged_in' => false
                );            
        $this->session->unset_userdata($data);
        delete_cookie();

i don't remember but i believe u need to delete_cookie() as well as $this->session->sess_destroy(); the $this->session->unset_userdata($data); not sure if that apply's to what your doing.
#12

[eluser]spaquet[/eluser]
Solved... By splitting everything. the logout function is now index in logout controller and everything is working fine.
I also had a redirect issue somewhere else in my code and solve this issue the same way (just adding a dedicated controller).
Thank you all for your support.

A Question remains: why should I create more controllers ???




Theme © iAndrew 2016 - Forum software by © MyBB