Since you mention the PHP version was old (4.1) then I have to ask: were
you using the $_SESSION array all along or were you using
session_register to register session variables? Although you probably
aren't since that would be rather easy to debug.
The script in which your global_variable was set makes absolutely no
difference. PHP is just looking for the SID someplace anyways (whether
that's COOKIE, GET or POST) and then it goes and retrieves that session
that matches that SID.
OK... when you say that it fails sporadically, what do you mean exactly?
Probably, based on what you've just said, you're somehow assigning into
your $_SESSION variables through the use of global variables that have
the same name as your $_SESSION indexes.
http://php.net/manual/en/ref.session.php#ini.session.bug-compat-42
--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php