O'Reilly logo

Building a Web Application with PHP and MariaDB: A Reference Guide by Sai Srinivas Sriparasa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Authentication and Access Control

In the previous chapter, we went over basic file operations such as importing data from files, exporting information to files, and logging data to files. In this chapter, we will go over the basics of how authentication and access control can be implemented into our application. Our student portal application can now perform three major tasks: the first is to add a student, the next is to add a course, and the third is to register a student to a course. Till now, we have a universal user that can do any of these operations. In this chapter, we will modify this behavior to set up session handling, access controls, and user roles for these users. We will use sessions to persist user data and provide a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required