I am having problems getting sessions to work. I may be missing something but as far as I can see the following very basic scripts should work.
page1.php
<?php
session_start();
session_register("variable");
$variable="anything";
echo $variable
?>
page2.php
<?php
session_start();
echo "the variable is $variable";
?>
Calling page1.php on my machine will display the variable but calling page2.php will not.
Please, will someone tell me what is going on?