ID: 15276 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: RedHat 7.1 PHP Version: 4.1.1 New Comment:
Use session module as current manual explains. Your script does not work as you expected. You are not supposed to unset() session variable with unset(). Use session_unregister() for global session vars instead. If you want to save session variable, don't unset(). Previous Comments: ------------------------------------------------------------------------ [2002-01-29 10:07:44] [EMAIL PROTECTED] Simple Script: <? session_id("TESTSESSION"); session_start(); session_register("TEXN_ARRAY"); echo $TEXN_ARRAY."<BR>"; unset($TEXNS_ARRAY); $TEXN_ARRAY = "Value 1"; echo $TEXN_ARRAY."<BR>"; ?> After execution we have: Value 1 Change line 7 to $TEXN_ARRAY = "Value 2"; After execution we have: Value 1 Value 2 Change line 7 to $TEXN_ARRAY = "Value 3"; After execution we have: Value 1 <-!!!!!!!!!!!! We expected Value 2 !!! Value 3 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15276&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php