note 6101 deleted from session_destroy by ronabop
| From: | ronabop@php.net | Date: | Fri, 18 Aug 2000 03:32:46 +0000 |
| Subject: | note 6101 deleted from session_destroy by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2279@lists.php.net to get a copy of this message | ||
I am extremely new to PHP, however, I think I have unravelled the mystery of session_destroy. First
of all, it is returning false, regardless of what the manual entry says. However, it appears to be
doing it's job anyway. I'm using PHP 4.0.1 on a Solaris box running Apache 1.3.12, and
session information is stored in files within the /tmp directory. When session_destroy is called,
the relevant info file is removed from /tmp, effectively wiping out all information relevant to the
session, just like the manual entry says. However, what session_destroy doesn't do is
completely *end* the session; any cookies that reference the session still remain, and, if cookies
weren't used, any URLs that contain the session ID will cause the session info file to be
recreated, albeit without all its previous information.
So... like I said, I'm new at this. Anybody know of a way to guarantee that a session is
terminated so that any future references to it will generate an error?