Ok but the easiest way would be...
session_start();
$HTTP_SESSION_VARS['StoredVariableData'] = $TheVariableYouWouldLikeToStore;
//That's it!
In other pages just use $HTTP_SESSION_VARS['StoredVariableData'] to use the data. But always place session_start() at the top of every page where you need the variable.