session_destroy() works fine for me - it deletes the session file after the
script finishes. I have never used the session_name() function. I am
wondering if it is possible that the server is confused about what session
needs to be destroyed because of the way session_name() is being used
here
I am also curious about the session_write_close() call. What is left to
write after the session_unset() call?
Sorry I can't give you anything more specific.
Kirk
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 4:03 PM
To: PHP General
Subject: [PHP] Destroying Ssessions
Unusual that I didnt even get one response, so I shall try again! :)
Ok why does this not work?
session_name(adminid);
session_start();
unset($sess);
session_unset();
session_destroy();
session_write_close();
$sess = 0;
etc etc etc etc etc etc..
After all that is executed I take a look at the session file
and what do I
see? All the session variables still there... and the file
still there
also! How can I get rid of them?
Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]