Login   Register  
PHP Classes
elePHPant
Icontem

File: array.http.auth.eg.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2013-01-08 20:30
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';