Originally Posted by tracknut
Two things... I don't see a call to session_start() in that second routine, and then I see a random statement:
I'm guessing you mean:
$_SESSION['username'] = $username;
Oh, and session_start(). Never noticed that one haha.
session_start() is required at the top of all pages that are going to use sessions.