note 9871 added to Session handling functions

From: Date: Tue, 28 Nov 2000 21:27:39 +0000
Subject: note 9871 added to Session handling functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-8203@lists.php.net to get a copy of this message
It says above that "If both track_vars and register_globals are enabled, then the globals variables and the $HTTP_SESSION_VARS entries will reference the same value." However, in this circumstance (both track_vars and register_globals enabled (the default)) i advise not assigning to the $HTTP_SESSION_VARS array at all. After spending hours troubleshooting lost session data, i found that ref'ing my session vars only as global vars (and not as, eg, $HTTP_SESSION_VARS["logged_in"] = true;) solved the problem. http://www.php.net/manual/ref.session.php

« previous php.notes (#8203) next »