Home Tutorial Php Phpfeature Tutorial HTTP Authentication With PHP

 
 

Share on Google+Share on Google+
HTTP Authentication With PHP
Posted on: March 31, 2010 at 12:00 AM
Advertisement
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:

PHP Cookie
In this tutorial we will study about cookie in PHP, cookies are very important part of Internet, it is used to store the data at client's browser to minimize the travel to the server. Examples in this tutorial will make it more clear.
 
PHP Session
In this tutorial we will study about session, what is session, how PHP handles session etc. In PHP $_SESSION is a pre-defined variable, this variable is used to store different values, which are accessible from any page of the website. Examples in this tutorial will make it more clear.
 
PHP Connection Handling
In this tutorial we will study about connection control, various values of connection control etc. Examples in this tutorial will make it more clear.
 
Advertisement

Related Tags for HTTP Authentication With PHP:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 31, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com