[PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnny Nguyen
This is the code in the first page that I visit. ? session_start(); $check0 = session_is_registered(fb); $check1 = session_register(fa); $check2 = session_is_registered(fa); $check3 = isset($HTTP_SESSION_VARS[fa]); $HTTP_SESSION_VARS[fa] = avalue; $check4 = isset($HTTP_SESSION_VARS[fa]); echo

RE: [PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnson, Kirk
apparently, session_is_registered and isset return null if they evaluate to false. I was expecting boolean true and false return values, What you were expecting is correct, boolean true/false. However, it appears that PHP converts these values to strings during the echo. true converts to

Re: [PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Alexander Skwar
So sprach »Johnny Nguyen« am 2001-08-21 um 12:29:53 -0700 : false. I was expecting boolean true and false return values, but no matter i can work with it this way, just wondering if this is by design.? There isn't such a thing as boolean true or false in PHP. In PHP, everything other than