php-general | 2001122

Re: [PHP] Re: $PHPSESSID on PHP 4.1.0 From: Andrey Hristov (ahristov <email protected>)
Date: 12/18/01

$PHPSESSID is only available if the session is started before current executed script.

Regards,
Andrey
----- Original Message -----
From: "Julio Nobrega Trabalhando" <inerte <email protected>>
To: <php-general <email protected>>
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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>