Personnally, what I do is something like this :
$user = "joe";
session_register("user");
But take care... if you do register a session variable in a function, you must do this :
function Function_Name () {
$GLOBALS["user"] = "joe";
session_register("user");
}
You'll get the value of the session variable with $_SESSION["user"].
Now, does it work ?