
Zephni
-
Posts
109 -
Joined
-
Last visited
Community Answers
-
Zephni's post in Problems with login script was marked as the answer
Yep, and it should always be the first thing at the top of the page. This is because you are trying to change the $_SESSION values which won't be associated with any particular session if you don't session_start(); first. Then on the next page it will be like the session was never set.
So just try adding:
session_start(); Underneath your opening <?php tag