Session destroy problem |
[eluser]gayathri[/eluser]
Hi all, I am trying to destroy the session by using this $this->session->sess_destroy(); command, but its not destrying properly, if i use if condition, it shows failure only, so please let me know, what is wrong in this. function logout() { $logout=$this->session->sess_destroy(); if(isset($logout)) { redirect('login'); } else { echo "not destroyed"; } }
[eluser]Peter Ivanov[/eluser]
see this If you ask yourself why we will need custom sessions congig please read here: http://www.captain.at/howto-php-sessions.php |
Welcome Guest, Not a member yet? Register Sign In |