Can't destroy Session!
Posted: Sun Oct 20, 2002 3:41 pm
I made this session based login script setting $_SESSION['username'] to verify user agaist... now I want to create my logout logic and figured if I destroy my session the variable will dissapear but... I can't destroy my session
I have a script with only this code:
<?
session_destroy();
?>
and get the error:
"Warning: Trying to destroy uninitialized session in logout.php on line 2"
What does this mean? Or is this not the proper way to logout
thank you/
Lars Netzel
I have a script with only this code:
<?
session_destroy();
?>
and get the error:
"Warning: Trying to destroy uninitialized session in logout.php on line 2"
What does this mean? Or is this not the proper way to logout
thank you/
Lars Netzel