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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -