session_destroy
| From: | sagar N Chand | Date: | Wed, 10 Oct 2001 15:42:51 +0000 |
| Subject: | session_destroy | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70684@lists.php.net to get a copy of this message | ||
i want to delete the session when a user logouts.
i just use session_destroy() to destroy the session. but i'm getting the following error :
Warning: Trying to destroy uninitialized session in C:\Program Files\Apache
Group\Apache\htdocs/sms/logout.php on line 2
my script is :
<?
session_destroy()
?>
how do i delete a session. i know session_unregiter will do. any other means ????
/sagar