To use a session, you must first have:
session_start();
At the beginning of your page. I think that older versions of PHP require that the session ID be passed by URL, but with the latest version of PHP (I never used sessions before then) I was able to pass sessions without doing this.
Then, you simply access a session variable like this:
$_SESSION['session_name'];
The other way is to use a cookie, which isn't a bad idea. However, I would recomend sessions.
I hope I was able to help. I apologize if I failed to do so.