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

[eluser]skunkbad[/eluser]
If you really want to delete the entire session, and not leave anything behind, you can use php's setcookie() function.

Code:
<?php
setcookie( config_item('sess_cookie_name'), '', time() - 3600 );

This would delete the entire session cookie. Remember, you are not limited to CodeIgniter when using CodeIgniter, it's just a framework.

Actually, if you already use the cookie helper, you can just use:

Code:
delete_cookie( config_item('sess_cookie_name') );


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



Theme © iAndrew 2016 - Forum software by © MyBB