Re: Re: cvs: phpdoc /en/reference/session/functions session-unset.xml

From: Date: Wed, 29 Oct 2003 00:41:54 +0000
Subject: Re: Re: cvs: phpdoc /en/reference/session/functions session-unset.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356751@lists.php.net to get a copy of this message
To unset single registered session "variable": unset ($_SESSION['varname']); To unset all registered "variables": session_unset (); --Jani On Tue, 28 Oct 2003, Martin Samesch wrote: >Hi Didou, > >On Tue, Oct 28, 2003 at 10:50:24PM +0100, Mehdi Achour wrote: >> Hi, >> >> >Index: phpdoc/en/reference/session/functions/session-unset.xml >> >diff -u phpdoc/en/reference/session/functions/session-unset.xml:1.4 >> >phpdoc/en/reference/session/functions/session-unset.xml:1.5 >> >[...] >> > <para> >> > If <varname>$_SESSION</varname> (or >> > <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is >> >- used, use <function>unset</function> to unregister session >> >- variable. i.e. $_SESSION = array(); >> >+ used, use $_SESSION = array(); to unregister a session variable. >> > </para> >> >> >> I think that the text should be : >> >> use unset($_SESSION['some_variable']) to unregister a session variable. >> >> Because, $_SESSION = array() destroy all the variables. Am I wrong ? > >Probably you're right. I'm sorry. > >Could somebody else please check this? > >Cheers, >Martin >

« previous php.doc (#969356751) next »