HI
I was trying to run this basic code on sessions....and it seems like my session variables are not getting registered. I am using Php Version 4.3.1 and the setting session.save_path has the value
session.save_path /tmp /tmp
is this correct? I am running apache on windows XP professional.
the code i am trying to run is
<?php
session_start();
$_SESSION["sess_var"] = "Hello World";
echo 'the content is '. $HTTP_SESSION_VARS['sess_var'];
?>
<a href="page2.php">Next Page</a>
andthe code for page2 is
<?php
session_start();
echo 'the content is'.$HTTP_SESSION_VARS['sess_var'];
?>
please help me...i dont know whats wrong with the code
thanks
radha