Welcome Guest, Not a member yet? Register   Sign In
Session Class -> sess_destroy not removing session
#1

[eluser]Aeisor[/eluser]
I'll preface by saying I'm relatively new to CodeIgniter, so I could just be doing something wrong.

I'm calling $this->session->sess_destroy(); before any output; However, throughout the same page load I can still call $this->session->userdata('id'); and get the 'correct' information back. If I use $this->session->unset_userdata('id'); instead of sess_destroy(); everything works as I would expect and I get no data returned.

This is for a user logout and should therefore unset all userdata before continuing with the output. Is this not possible with CI sessions? To be honest, I'm not entirely convinced I should be using them over standard $_SESSION

Thanks in advance for any help / advice.

[Edit] This is Chrome 22 on Ubuntu 12.04


Messages In This Thread
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 12:35 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 12:56 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 01:07 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-25-2012, 01:14 PM
Session Class -> sess_destroy not removing session - by El Forum - 10-31-2012, 08:03 AM
Session Class -> sess_destroy not removing session - by El Forum - 10-31-2012, 12:10 PM
Session Class -> sess_destroy not removing session - by El Forum - 06-10-2013, 06:06 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-10-2013, 07:36 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 09:42 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 09:45 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 10:59 AM
Session Class -> sess_destroy not removing session - by El Forum - 06-12-2013, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB