Like this:
<?phpsession_start();$_SESSION['name']="This will be passed on.";?>
Now take this one:
<?phpsession_start();echo $_SESSION['name'];?>
Now upload those two on your server, go to the first one, then go to the second one, and it will show you what the value of the session is. Make sense?