Welcome Guest, Not a member yet? Register   Sign In
$this->session->sess_destroy(); doesn't destroy all session
#4

[eluser]tinawina[/eluser]
Ok - I did read the manual, and I started out using $this->session->sess_destroy() and that didn't work so I came here and found this post. Tried unset($this->session->userdata) but that didn't kill my session either. What I ended up doing is killing each session variable individually:

$this->session->unset_userdata('username');
$this->session->unset_userdata('userid');
$this->session->unset_userdata('useremail');
...

To do this quickly you could loop through the session array, turning each one off as you loop.

This was the only way I found to kill my session.


Messages In This Thread
$this->session->sess_destroy(); doesn't destroy all session - by El Forum - 07-05-2012, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB