Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando

  Yes! That's it. I was accessing vars using new methods, but I forgot
$PHPSESSID was supposed to have globals on. So simple, yet I have flooded
the list with messages.

  Thanks Andrey, I think it's better next time look at all possible options
;-)

--

Julio Nobrega.

Um dia eu chego la:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
039e01c187e0$a9a54810$0b01a8c0@ANDreY">news:039e01c187e0$a9a54810$0b01a8c0@ANDreY...
> register_globals is recommended to be off in the new release. But if you
put binaries from a package and didn't changed the ini -
> register_globals is probably on.
>
> Regards,
> Andrey
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov

register_globals is recommended to be off in the new release. But if you put binaries 
from a package and didn't changed the ini -
register_globals is probably on.

Regards,
Andrey

- Original Message -
From: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 5:53 PM
Subject: Re: [PHP] Re: $PHPSESSID on PHP 4.1.0


>   Yes, I know. But the problem is PHP 4.1.0, or maybe something on the new
> php.ini that comes with. My scripts were echo'ing $PHPSESSID fine before it.
>
> --
>
> Julio Nobrega.
>
> Um dia eu chego la:
> http://sourceforge.net/projects/toca
>
> "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
> 032e01c187db$148bfa30$0b01a8c0@ANDreY">news:032e01c187db$148bfa30$0b01a8c0@ANDreY...
> > $PHPSESSID is only available if the session is started before current
> executed script.
> >
> >
> > Regards,
> > Andrey
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando

  Yes, I know. But the problem is PHP 4.1.0, or maybe something on the new
php.ini that comes with. My scripts were echo'ing $PHPSESSID fine before it.

--

Julio Nobrega.

Um dia eu chego la:
http://sourceforge.net/projects/toca

"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
032e01c187db$148bfa30$0b01a8c0@ANDreY">news:032e01c187db$148bfa30$0b01a8c0@ANDreY...
> $PHPSESSID is only available if the session is started before current
executed script.
>
>
> Regards,
> Andrey




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov

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


Regards,
Andrey
- Original Message -
From: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]>
To: <[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
>
> 
> // 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Julio Nobrega Trabalhando

  Hi again,

  Here are a few updates (error_reporting(E_ALL)):

$_SESSION['PHPSESSID'];
// Undefined index PHPSESSID error


// 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: $PHPSESSID on PHP 4.1.0

2001-12-18 Thread Andrey Hristov

First 

NULL
string(5) "4.0.4"

So I think that the problem is that you haven't started any session. Before session 
starting PHPSESSID is NULL. That is my opinion.
PHPSESSID by default is get as GET parameter. Do you have any GET parameter when 
starting on a console?


Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]