January 21st, 2013, 08:34 AM
well it's my first time creating a website and especially a login system.What I haven't been yet able to understand is the exact use of session.for example I have a Landing page where the user can login.The login procedure is handled by a php script.
Where exactly do I put the session_start command and how is the user remembered when he wants to go to his very own profile page?
thanks in advance
January 21st, 2013, 09:13 AM
Session start goes at the very beginning of your PHP code. Not sure what you mean with your second question. How a user gets his/her own profile is dependent on how you program it. Generally this is associated with a database based on username. You are not planning to do this with just session variables and not a database are you?
There are 10 kinds of people in the world. Those that understand binary and those that don't.