Re: session_destroy

From: Date: Wed, 10 Oct 2001 16:23:22 +0000
Subject: Re: session_destroy
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70693@lists.php.net to get a copy of this message
Hi You have to use session_start() before you use session_destroy() Like this <? session_start() session_destroy() ?> I think that will work Shimon "Sagar N Chand" <sagarchand@yahoo.com> wrote in message news:001201c151a2$922cdcd0$ded0d6d2@inferno... 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

« previous php.general (#70693) next »