Re: Undefined index ???
| From: | Torsten Roehr | Date: | Wed, 09 Jun 2004 20:08:58 +0000 |
| Subject: | Re: Undefined index ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187974@lists.php.net to get a copy of this message | ||
"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