Welcome Guest, Not a member yet? Register   Sign In
Session destroy
#1

[eluser]myjeep_2003[/eluser]
I am using mysql table to store session and trying to delete session (logout function) It is not killing the sessions... what is wrong...?


function logout()
{

$this->delete_autologin();

// See http://ellislab.com/forums/viewreply/662369/

$this->ci->session->set_userdata(array('user_id' => '', 'username' => '', 'status' => ''));

$this->ci->session->sess_destroy();


}


Messages In This Thread
Session destroy - by El Forum - 04-13-2010, 11:31 AM
Session destroy - by El Forum - 04-13-2010, 12:36 PM
Session destroy - by El Forum - 04-13-2010, 02:05 PM
Session destroy - by El Forum - 04-13-2010, 02:11 PM
Session destroy - by El Forum - 04-13-2010, 02:12 PM
Session destroy - by El Forum - 04-13-2010, 02:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB