Problem with session_destroy
| From: | Rosen | Date: | Tue, 11 Sep 2001 14:05:54 +0000 |
| Subject: | Problem with session_destroy | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66928@lists.php.net to get a copy of this message | ||
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