Re: session_destroy() does not work
| From: | Jesper Juhl | Date: | Tue, 05 Sep 2000 00:52:16 +0000 |
| Subject: | Re: session_destroy() does not work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15185@lists.php.net to get a copy of this message | ||
Daniel Ruthardt wrote:
>
> Hi everyone!
>
> Sessions do work fine, except session_destroy(). PHP prompts with the
> warning "Session could not be destroyed". What could be possible reasons
> that session_destroy() does not work?
If you are using files to store session data (the default), then one
possible reason could be that you somehow writeprotect the session files
so they cannot be deleted. Another possibility is that you destroy the
session file(s) by some other means so that session_destroy() has no
file to delete.
> I am using PHP4.0.2 CGI version and the session is started before I want to
> close it...
>
Are you 100% sure you are attepting to destroy the correct session?
> Daniel
>
-- Jesper Juhl - juhl@eisenstein.dk