session_destroy won't work, PHP 4.0.3pl Win95
| From: | Ken | Date: | Mon, 04 Mar 2002 23:42:27 +0000 |
| Subject: | session_destroy won't work, PHP 4.0.3pl Win95 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87182@lists.php.net to get a copy of this message | ||
I am able to create a session. A cookie is set in the browser. The variables I registered are in
the session. I can access it.
But I can't do anything that would modify or destroy the session.
Example: If I have a script:
<?php
session_start();
session_unset();
session_destroy() or die("Couldn't destroy");
?>
PHP gives me this error:
"Warning: Session object destruction failed in script.php on line (session_destroy line
#)"
and I get my "Couldn't destroy" message.
And, in fact, the session file remains in my c:\temp folder, and next time a script is called and
does session_start(), it gets all the original values of my session.
Similarly, in a different script, no matter what I do about changing my registered variables, next
time a script is called with session_start(), the original values are still in the session. I
cannot do anything about changing the contents of a session at all.
(And the cookie is still set, but I know about how that works. But I want to destroy the session on
the server, which is what I thought session_destroy was supposed to do.)
Any ideas?
- Ken
kenzo@free-music.com