Re: Re: $PHPSESSID on PHP 4.1.0
| From: | Andrey Hristov | Date: | Tue, 18 Dec 2001 15:45:55 +0000 |
| Subject: | Re: Re: $PHPSESSID on PHP 4.1.0 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78070@lists.php.net to get a copy of this message | ||
$PHPSESSID is only available if the session is started before current executed script.
Regards,
Andrey
----- Original Message -----
From: "Julio Nobrega Trabalhando" <inerte@hotmail.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 18, 2001 1:45 PM
Subject: [PHP] Re: $PHPSESSID on PHP 4.1.0
> Hi again,
>
> Here are a few updates (error_reporting(E_ALL)):
>
> $_SESSION['PHPSESSID'];
> // Undefined index PHPSESSID error
>
> <?=SID?>
> // Doesn't work. Not even a undefined variable.
> // echo $SID doesn't either
>
> But:
> echo session_id();
> // works!
>
> Thanks Andrey for the remainder, but session were already started (checked
> with print_r($_SESSION)), Tim for the creative insight
> ($_SESSION['PHPSESSID']) and Tom, who found the solution.
>
> So, that's it. Looks like there's no more $PHPSESSID.... That makes
> porting a little bit more annoying :-)
>
> --
>
> Julio Nobrega.
>
> Um dia eu chego lА:
> http://sourceforge.net/projects/toca
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>