Re: Session destruction
| From: | * R&zE: | Date: | Thu, 06 Sep 2001 15:04:36 +0000 |
| Subject: | Re: Session destruction | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66225@lists.php.net to get a copy of this message | ||
<Original message>
From: Kristofer Thorssell <kthorssell@mpmail.net>
Date: Thu, Sep 06, 2001 at 04:56:17PM +0200
Message-ID: <EF6C3D3314FFD311BC2A0090278D361E8D6BC1@mp-exch01.mp-intern>
Subject: [PHP] Session destruction
> <?
> session_start();
> if(session_destroy()) echo "You are now logged out";
> ?>
>
> is there something wrong with this?
> because i've seen many comments where people say that you can't have start
> and destroy in the same script.
>
> /Kristofer
</Original message>
<Reply>
I don't know who the h*ll told you that, but session_start()
_has_to_be_ in the same script as session_destroy(). Otherwise that
d#mn thing doesn't know what to destroy.
</Reply>
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze@datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««