20.3. User Authentication with Apache and PHP
Have you ever thought about authentication? Just think of an application consisting of dozens of screens—every user should have certain permissions and certain rights. Therefore authentication is necessary. Apache and PHP provide various methods of user authentication. In this section you will take a closer look at the most important methods for authentication. You will be guided through the principles and learn how to build a secure site.
20.3.1. Apache
The easiest way to protect your site against users who are not allowed to visit it is to use Apache's basic authentication. Basic authentication can be used easily and it provides rudimentary security for your Web site.
The next example shows a short ...
Get PHP and PostgreSQL: Advanced Web Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.