Re: Undefined index ???
| From: | Torsten Roehr | Date: | Wed, 09 Jun 2004 20:23:38 +0000 |
| Subject: | Re: Undefined index ??? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187979@lists.php.net to get a copy of this message | ||
"Michael Jonsson" <micke@lmpnet.se> wrote in message
news:20040609201734.35754.qmail@pb1.pair.com...
> No, it's not set to NULL it just emty...
Empty means:
$_SESSION['user_status'] = '';
or
$_SESSION['user_status'] = 0;
Not setting it does NOT mean it's empty.
Torsten
>
> .M
>
>
> Torsten Roehr wrote:
> > "Michael Jonsson" <micke@lmpnet.se> wrote in message
> > news:20040609194922.13237.qmail@pb1.pair.com...
> >
> >>Hi
> >>
> >>Why do I get an error if the $_SESSION['user_status'] is NULL ???
> >>
> >>
> >>####Script######
> >>session_start();
> >>echo $_SESSION['user_status'];
> >>
> >>
> >>#####error######
> >>Notice: Undefined index: user_status in
> >>/var/www/itmdata/include/include.php on line 13
> >
> >
> > Did you really set it to null?:
> >
> > $_SESSION['user_status'] = null; ?
> >
> > Regards, Torsten