Synook Posted May 10, 2010 Share Posted May 10, 2010 Well, you say you set $_SESSION['valid_user'], but then in check_valid_user() you are looking for $_SESSION['$valid_user']. In fact, since you use single quotes there it will actually look for the string index $valid_user'. Link to comment Share on other sites More sharing options...
pritam79 Posted May 12, 2010 Author Share Posted May 12, 2010 Well, you say you set $_SESSION['valid_user'], but then in check_valid_user() you are looking for $_SESSION['$valid_user']. In fact, since you use single quotes there it will actually look for the string index $valid_user'.The login script worked well and was directing a user to the index page. But suddenly something went wrong and the error message ‘Notice: Undefined variable: _session in C:\wamp\www\Site\login.php on line 13’ appeared. Actually when the login was OK, I was trying to display a welcome message to the user on the index page. But everything went wrong and I am not even able to login. Plz help…. Link to comment Share on other sites More sharing options...
Synook Posted May 12, 2010 Share Posted May 12, 2010 $_SESSION is in all caps. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.