View Single Post
Old 09-14-2011, 04:34 AM   PM User | #6
BluePanther
Senior Coder

 
Join Date: Jul 2011
Posts: 1,226
Thanks: 3
Thanked 171 Times in 171 Posts
BluePanther is on a distinguished road
Quote:
Originally Posted by tracknut View Post
Two things... I don't see a call to session_start() in that second routine, and then I see a random statement:
Code:
$_SESSION['username'];
I'm guessing you mean:
Code:
$_SESSION['username'] = $username;
Dave
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.
BluePanther is offline   Reply With Quote