<Original message>
From: Kristofer Thorssell <[EMAIL PROTECTED]>
Date: Thu, Sep 06, 2001 at 04:56:17PM +0200
Message-ID: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««

-- 
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]

Reply via email to