PHP Classes

File: array.http.auth.eg.php

Recommend this page to a friend!
  Classes of Md. Shahadat Hossain Khan Razon   Basic Realm Authentication Controller   array.http.auth.eg.php   Download  
File: array.http.auth.eg.php
Role: Example script
Content type: text/plain
Description: Example: Authentication by Array
Class: Basic Realm Authentication Controller
Authenticate users with HTTP basic mechanism
Author: By
Last change: fix session hijacking & fixation
Date: 11 years ago
Size: 502 bytes
 

Contents

Class file image Download
<?php

/**
 * the array may come from another script. it may secure contain secure password
 * no problem at all!!!!!!!
 */

session_start();
include_once
'http.auth.cls.php';
$httpauth=new HTTPBasicRealmAuth('project for user by array of 2013', array('razon'=>'321', 'admin'=>'admin', 'demo'=>'demo'));
#$httpauth=new HTTPBasicRealmAuth('project for user by array of 2013', array('razon'=>md5('321'), 'admin'=>md5('admin'), 'demo'=>md5('demo')), NULL, true);

include 'secure.file.eg.php';