Re: Re: cvs: phpdoc /en/reference/session/functions session-unset.xml
| From: | Martin Samesch | Date: | Tue, 28 Oct 2003 22:23:20 +0000 |
| Subject: | Re: Re: cvs: phpdoc /en/reference/session/functions session-unset.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969356749@lists.php.net to get a copy of this message | ||
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