Well, first you have to start the session (session_start(); ) and then register the variables you want (session_register($var); ). That variable will then be available in all pages that it accesses. Remember though, you must have session_start(); at the beginning of each page (before the headers) that you want those variables to be accessible in. For example:
page1.php:
<?
session_start();
$userid = "TalonFinsky";
session_register($userid);
echo "<a href=\"page2.php\">Click here for next page</a>";
?>
...
page2.php:
<?
session_start();
echo "Welcome, ".$userid."!!";
?>
page2.php in a browser would look like:
Welcome, TalonFinsky!!