HTTP_SESSION_VARS != Work

From: Date: Sun, 02 Dec 2001 05:46:06 +0000
Subject: HTTP_SESSION_VARS != Work
Groups: php.general 
Request: Send a blank email to php-general+get-76337@lists.php.net to get a copy of this message
Hello, Slight Problem: ---------- This piece of code: session_start(); unset($testvar); session_register("testvar"); $HTTP_SESSION_VARS["testvar"] = "testval"; print "Global: $testvar | Track_var: " . $HTTP_SESSION_VARS["testvar"] . ".<br>"; $testvar = "testglobalassign"; print "Global: $testvar | Track_var: " . $HTTP_SESSION_VARS["testvar"] . ".<br>"; Produces this output: Global: | Track_var: Global: testglobalassign | Track_var: -------- Now, The other HTTP_*_VARS works just fine. I dont know where to go to fix this. The Php.ini file says: register_globals: on and I compiled it with --enable-track-vars (even though it should be on by default) PHP version is 4.0.6 with apache 1.3.22 Anyone seen this problem or know how to fix? Thanks, Andrew

« previous php.general (#76337) next »