I\'m writing a user login system, and I (like so many others) am having a problem with my sessions.
Here\'s the pointer from the login script when the inputs are validat
First of all, please enable debugging:
error_reporting(E_ALL); ini_set('display_errors', '1');
Second, session_start() needs to be at the top of the page. So the line you wrote;
You are logged in as:
will never work.
The following line needs to be on top of the page, before any HTML etc.