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

[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";
}
}
#2

[eluser]wiredesignz[/eluser]
sess_destroy() doesn't return a value.
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB