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
"check0=$check0<br>check1=$check1<br>check2=$check2<br>check3=$check3<br>che
ck4=$check4";
?>
This is the output i get.
check0=
check1=1
check2=1
check3=
check4=1
apparently, session_is_registered and isset return null if they evaluate to
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.?
regards,
Johnny Nguyen
--
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] hacks we should know about Bob
- Re: [PHP] hacks we should know about Rasmus Lerdorf
- Re: [PHP] hacks we should know about Bob
- Re: [PHP] hacks we should know about Richard Lynch
- Re: [PHP] hacks we should know about ReDucTor
- RE: [PHP] hacks we should know about Seb Frost
- Re: [PHP] hacks we should know about Alexander Skwar
- Re: [PHP] hacks we should know about Ashley M. Kirchner
- [PHP] To jump or not to jump? Seb Frost
- Re: [PHP] To jump or not to jump? Jay Paulson
- Re: [PHP] Sessions, Is this b... Johnny Nguyen
- Re: [PHP] Sessions, Is this b... Alexander Skwar
- [PHP] Re: To jump or not to jump? Gabe da Silveira
- Re: [PHP] Re: To jump or not ... Alexander Skwar
- [PHP] Re: To jump or not to jump? Richard Lynch
- Re: [PHP] hacks we should know about Alexander Skwar
- Re: [PHP] hacks we should know about Richard Lynch
- RE: [PHP] hacks we should know about Lawrence . Sheed
- RE: [PHP] hacks we should know about Dave Freeman
- RE: [PHP] hacks we should know about Lawrence . Sheed
- Re: [PHP] hacks we should know about Bill Rausch

