Re: !!Urgent .. Session Problem
| From: | Dre | Date: | Sat, 04 Sep 2004 09:16:09 +0000 |
| Subject: | Re: !!Urgent .. Session Problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195818@lists.php.net to get a copy of this message | ||
thanks ..I won't use the session_register() again
"Torsten Roehr" <roehr@zilleon.com> wrote in message
news:20040904085051.30369.qmail@pb1.pair.com...
> "Dre" <dre00x@yahoo.com> wrote in message
> news:20040904080637.92239.qmail@pb1.pair.com...
> > session_register('uname');
> > $_SESSION['uname'] = $username;
>
> Hi Dre,
>
> Nick already answered your question so just a short note:
> you should not use session_register() with your PHP version anymore, so
just
> delete the first of the upper two lines.
>
> Excerpt from the manual:
>
> >>>
> Caution
> If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use
> session_register(), session_is_registered(), and session_unregister().
> <<<
>
> Regards, Torsten Roehr