From the course: PHP with MySQL Essential Training: 2 Build a CMS

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

User authentication overview

User authentication overview

- [Instructor] In this chapter, we will learn how to regulate access to certain pages by requiring that a user first provide a username and a password. This process is called user authentication because we're verifying the identity of a user. An authentic user should know the username and the password. Let's begin by getting an overview of user authentication. User authentication is essential in any modern web application because they almost always have some kind of password protected area. Maybe it's a content management system where staff or admins are able to update content that the public sees. That's the case in our application that we're building. Or it might be that there's a VIP area or a member only area, an area dedicated to certain customers or to paying users. In all those cases, we would want to protect those pages so that you have to have a username and password to be able to see the content that's there. And it's important to do it right because if we don't, if we make…

Contents