destroying sessions
| From: | php@aeroinc.net | Date: | Fri, 13 Oct 2000 15:18:39 +0000 |
| Subject: | destroying sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20025@lists.php.net to get a copy of this message | ||
Hello,
Just wondering if there is a problem destroying sessions
in PHP 4.X with Win32. No matter how I try, I always end
up with the following message:
"Warning: Session object destruction failed in [php_file] on line [x]"
This happens if I call session_start() before
session_destroy(). If I do not call session_start() then it
complains about not being able to destroy an uninitialized
session. Or maybe I'm going about this wrong. All I want to
do is after the user clicks "Log Out" have the session
file destroyed. (I'm using the standard file sessions in
PHP 4.)
If it was a problem with PHP, then I thought that it would
have been fixed with 4.0.3. I can try it out on Linux later
(as that will be the production platform), but it'd be
great if it worked the same way on Win32/Apache as well.
Thanks,
Matthew