HTTP Authentication With PHP

Ads
 

HTTP Authentication With PHP

Security is major topic in the Internet or IT field, to deal with this topic different language/technology use different techniques. In this tutorial we will study about security feature in PHP

Security is major topic in the Internet or IT field, to deal with this topic different language/technology use different techniques. In this tutorial we will study about security feature in PHP

HTTP Authentication with PHP:

The HTTP Authentication is available when it is running as an Apache module. In this module  we use the header() function to send a message (for authentication) to the client side (browser) and for doing so we pop up a user-validation window. After filling the form the url which contains the PHP script is again called with the predefined variables for authentication. $_SERVER and $HTTP_SERVER_VARS contains these predefined variables.

Instead of using simple PHP_AUTH_USER and PHP_AUTH_PW, it's may be needed to check the validity of the username and password, either by sending a (or multiple set of) query to a database, or by looking up the user in a dbm file.

This is the index page on this topic, please visit our subsequent pages for details:

Ads

Ads