Re: Session_destroy
| From: | chris smith | Date: | Wed, 19 Apr 2006 14:12:22 +0000 |
| Subject: | Re: Session_destroy | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234279@lists.php.net to get a copy of this message | ||
On 4/19/06, Shannon Doyle <shannon@xpc.com.au> wrote:
> Hi People,
>
> Trying to get a session to destroy correctly, however the darn thing just
> refuses to destroy. I call the following in a separate webpage in a effort
> to destroy the session, only to find that the session still persists.
>
> <?php
> session_start();
> session_unset();
> session_destroy();
> Header("Location: index.php");
> ?>
What's in index.php?
Try giving the session a name (see http://www.php.net/session_name)
and see what happens.
--
Postgresql & php tutorials
http://www.designmagick.com/