php - How can I make a session start on the index page if that is where the login form is? -
when load index.php, there no session started. there login form uses login class created, , when user logged in, taken index.php, @ time session should start.
what need ensure session starts on index page when successful login has occurred?
session , authentication not synonymous. can start session without logging it. can set session specific variable , check determine if user logged in.
just start session @ top of page, whether user logged in or not.
Comments
Post a Comment