Sessions Vars under 4.0.4pl1

From: Date: Wed, 17 Jul 2002 11:28:04 +0000
Subject: Sessions Vars under 4.0.4pl1
Groups: php.general 
Request: Send a blank email to php-general+get-108054@lists.php.net to get a copy of this message
Hello All, I, having problems getting HTTP_SESSION_VARS to work the way I think they should. Shouldn't I just be able to do something like: in a file called index.php I have the following; <?php session_start(); ?> <html> <head></head> <body> The session_id is <?php echo "\"".session_id()."\""; ?> <a href="index2.php">Next</a> <?php $HTTP_SESSION_VARS['count']=123; ?> </body> </html> In index2.php I then have <?php session_start(); ?> <html> <head></head> <body> The session_id is <?php echo "\"".session_id()."\""; ?> <?php echo "\$HTTP_SESSION_VARS['count']=".$HTTP_SESSION_VARS['count'].".<BR>"; ?> </body> </html> Now when I go to the first one all is great and the session id is shown. But when I click on the "Next" link I get the next page with the same session id shown (all well and good) but no value in $HTTP_SESSION_VARS['count']!!! Where am I going wrong? Henry

« previous php.general (#108054) next »