Sessions, Is this behavior by design?

From: Date: Tue, 21 Aug 2001 19:29:53 +0000
Subject: Sessions, Is this behavior by design?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63765@lists.php.net to get a copy of this message
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

« previous php.general (#63765) next »