In php you start a session using:
To store a variable you use:
$_SESSION['var'] = "your value here";
To read from that variable in another page or even the same page use the same command minus the equals sign forward.
Then finally to terminate the session use:
Make sure not to terminate the session until your done reading the data because when you terminate the session it wipes the values.