RE: [PHP] Need Help with $_SESSION.

From: Date: Thu, 04 Jul 2002 09:50:49 +0000
Subject: RE: [PHP] Need Help with $_SESSION.
Groups: php.general 
Request: Send a blank email to php-general+get-105409@lists.php.net to get a copy of this message
> -----Original Message----- > From: Scott Fletcher [mailto:scott@abcoa.com] > Sent: 03 July 2002 20:58 > > Still working on the script. Here what I found out so far. > Why does the > example #1 work and example #2 doesn't? > > Example #1 > > Page 1 > > $_SESSION[0] = "Zero"; > > $_SESSION[1] = "One"; [snip] Actually, I'm amazed either of your examples work correctly, since numeric session variable names aren't supported (see bug report 17122 at http://bugs.php.net/bug.php?id=17122. As the $_SESSION indexes you use indeed have the potential to be actual variable names (if register_globals is turned on), they must themselves be valid PHP variable names. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#105409) next »