I have tried for several days now and used many pre-written scripts to have a particular page on my site accessed only by registered users.
User register through a form and the info. is then submitted into the user mySQL database. I later want the email field and password field to be used to login. The form is submitted via a HTTPS connection and then I use md5 to encrypt the password.
Anyone have any suggestions for a very easy but working script?
make a login page and if they have the correct password start a session and set a session variable, then at the top of the registered only page check if the session variable is set. if it isnt then they arent logged in.