No, no, no and no !!!
Always set the value of a variable BEFORE registering it in a session...
session_start();
$pass = "helloe there";
session_register('pass');
And don't user session_register() before showing the content of a variable, it will erease it...
session_start();
echo "<body>Pass=$pass</body>";
And use $SESSION["<variable name>"] instead of $<variable_name> : $SESSION["pass"] instead of $pass. It's more secure and it since some config sometimes makes that session variables are not directly accessible, you must use $_SESSION.