#
/ register.php - first script which will supposedly store the session variable and link to another page.
#
#
<?php
#
session_start();
#
$mycolor = "blue";
#
session_register("mycolor");
#
#
// echo '<a href="session.php">Click here to go to the next page.</a>';
#
echo "<a href=\"session.php\">Click here to go to the next page.</a>";
#
#
?>
#
#
// session.php, which will supposedly take the session variable and echo it out.
#
#
<?php
#
session_start();
#
echo 'My favorite color is ' . $mycolor;
#
#
?>