User Authentication

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DoctorT
Forum Newbie
Posts: 3
Joined: Thu Mar 31, 2011 4:56 am

User Authentication

Post by DoctorT »

Hi!

To limit access to selected web pages to registered users, I was planning to authenticate the user by searching a MySQL database and, then, as pages are called, passing a session variable such as “access = true” to the selected web pages.

Am I planning to do the right thing? Any suggestions?

Thank you.

DoctorT
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: User Authentication

Post by social_experiment »

DoctorT wrote:Am I planning to do the right thing?
You're on the right path with this. Search the security threads on here for more help on this as the topic has been covered at length.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply