Starting a Session
To start a session use session_start() and to register a variable in this session use the $_SESSION array.

<?php
  session_start
();
  
$_SESSION['my_var'] = 'Hello World';
?>
If register_globals is enabled then your session variables will be available as normal variables on subsequent pages. Otherwise they will only be in the $_SESSION array.

<?php
  session_start
();
  echo 
$_SESSION['my_var'];
?>