RE: [PHP] Session problem

From: Date: Wed, 08 Aug 2001 14:43:52 +0000
Subject: RE: [PHP] Session problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61837@lists.php.net to get a copy of this message
Nope. Same problem. I'm seriously thinking there's a bug in the version of PHP I am running at this point, but I searched php.net and found no mention of anything .. Chad -----Original Message----- From: Brian Dunworth [mailto:brian@theprintinghouse.com] Sent: Wednesday, August 08, 2001 10:37 AM To: php-general@lists.php.net Cc: 'Chad Day' Subject: RE: [PHP] Session problem On Wednesday, August 08, 2001 at 9:16 AM, Chad Day said: > I wish it did. > > Still the same problem. > > <?php > session_start(); > global $count; > session_register ("count"); > $count++; > ?> > > Hello visitor, you have seen this page <?php echo > $HTTP_SESSION_VARS["count"]; ?> times.<p> You're asking the session to remember a value ( session_register() ), then changing that value ( $count++ ) and not re-registering it, then complaining when the session returns the value you asked it to remember. What if you did: <?php session_start(); $count++; session_register ("count"); ?> - Brian ----------------------------------- Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 ----------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#61837) next »