Is session held in the cache?
| From: | graeme | Date: | Tue, 09 Nov 2004 15:56:24 +0000 |
| Subject: | Is session held in the cache? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24950@lists.php.net to get a copy of this message | ||
I've used the following script from the help file. It works fine BUT when I recreate the session (in the same script) the session file is created with the same file name (and the creation date is the original date). So is it really being deleted or is it just hanging about (like the evil dead) in a cache waiting to walk again?
session_start();
$_SESSION = array();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
session_destroy();
I've tried adding a call to session_write_close(); but no joy.
Any advice would be appreciated.
graeme.