RE: [PHP] Destroying Ssessions
| From: | Johnson, Kirk | Date: | Thu, 01 Nov 2001 23:52:52 +0000 |
| Subject: | RE: [PHP] Destroying Ssessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73204@lists.php.net to get a copy of this message | ||
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:rick@baskettcase.com]
> 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