session doesn't keep data

From: Date: Sat, 13 Dec 2003 15:34:25 +0000
Subject: session doesn't keep data
Groups: php.general 
Request: Send a blank email to php-general+get-172637@lists.php.net to get a copy of this message
Can someone tell me what am i doing wrong here? The session doesn't keep data variables. I'm using php 4.0.6 with register_globals on and the system is: "SunOS src 5.7 Generic_106541-12 sun4u sparc SUNW,UltraSPARC-IIi-cEngine" . The first page called "info.php" looks like that: <?php session_start(); header("Cache-control: private"); global $HTTP_SESSION_VARS ; $HTTP_SESSION_VARS['count'] = 4; echo "The value of count is: " . $HTTP_SESSION_VARS['count'] . "</br>" ; ?> and returns "The value of count is 4.</br> " The second page called "info2.php" looks like: <?php session_start(); header("Cache-control: private"); global $HTTP_SESSION_VARS ; echo "The value of count on the second page is: " . $HTTP_SESSION_VARS['count'] . "</br>" ; ?> I open "info.php" and then i open "info2.php", which returns "The value of count on the second page is: </br>" . Can anyone help please ?

« previous php.general (#172637) next »