Re: Problem with session_destroy

From: Date: Wed, 12 Sep 2001 05:26:29 +0000
Subject: Re: Problem with session_destroy
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66990@lists.php.net to get a copy of this message
The file isn't written out until the end of your script, and you're trying to kill it?... Since you haven't registered any variables nor set them, deleting the session doesn't seem like a big deal... What's your overall design goal here? -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Rosen <rosen_dm@dir.bg> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Tuesday, September 11, 2001 9:05 AM Subject: Problem with session_destroy > I have the code: > > <?include("con.php"); > > session_start(); > require_once("func1.php"); > > if (lExistUser($cusr, $cpass)==false) > { > if (session_id() <> "") > {session_destroy();} > > } > > When the page loads the first time I receive error: > > > > "Warning: Session object destruction failed in main.php on line 9" > > but when I make "Refresh" of page, there is no error !! > > Can someone any ideas ? > > Thanks > Rosen > > > >

« previous php.general (#66990) next »