Rahmon suggested an older method of registering session variables; the modern method for assigning a value to a session variable is to use
$_SESSION['sessionvariable'] = $_POST['postedvariable'];
And reading a session variable should be obvious.
Aside from that, the only other thing that's needed is the statement
session_start();
to load up the $_SESSION[] array on each page that uses it.
More details are in the manual's section on [man]session[/man] handling functions.