note 9871 deleted from ref.session by yohgaki
| From: | yohgaki@php.net | Date: | Sat, 19 Jan 2002 06:27:44 +0000 |
| Subject: | note 9871 deleted from ref.session by yohgaki | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25099@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.