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 -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -