User authentication

software development

#1

I’m new to MySQL and PHP. I’m trying to have users login to my website. I’ve used DreamweaverMX and a php book that has a user authentication to try this. Both ways I get error messages. What is the best way to do this?
Thanks
tom


#2

There’s no one easy way. PHP makes it fairly easy because it does session management for you, but you pretty much store a session in the database, link it to the PHP session using a session id of some sort, and then if a person doesn’t have a session you authenticate based on user/password/whatever information you have in the db. If the user/password whatever doesn’t match, you don’t keep the session.

There’s no concrete way to just describe this…it’s impossible to give you specific advice without knowing exactly what to do and what errors you’re getting.

nate.