I'm trying to use this little sample script on my server but it doesn't want to work. My question is very simple: Why?:-)
<?php
// index.php
session_start();
$my_session_variable = "some value";
session_register("my_session_variable");
print "<a href=index2.php>Click me</a>";
?>
<?php
//index2.php
session_start();
print "Value of 'my_session_variable': $my_session_variable";
?>
If i take a look into session dir, i can see the session file with the correct data, so it seems to me just the php script can't read it.
My configuration is: Win XP, PHP v 4.3.1, Apache v 1.3.27
In my php.ini file register_globals is on and the session settings are set to default (at least i guess).
Please help
Thanks