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 ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php