Login   Register  
PHP Classes
elePHPant
Icontem

File: constant.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  >  constant.http.auth.eg.php  >  Download  
File: constant.http.auth.eg.php
Role: Example script
Content type: text/plain
Description: Example: Authentication by Constant/Embedded User Information
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: 379 bytes
 

Contents

Class file image Download
<?php


session_start
();
include_once 
'http.auth.cls.php';
#$httpauth=new HTTPBasicRealmAuth('demo', 'demo');
$httpauth=new HTTPBasicRealmAuth('constant type authentication year 2013''demo'md5('demo'), true);
#$httpauth=new HTTPBasicRealmAuth('constant type authentication year 2013', 'demo', '90686f326894e2a1088a5ba04d661d3e', true);

include 'secure.file.eg.php';