Login   Register  
PHP Classes
elePHPant
Icontem

File: 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  >  http.auth.eg.php  >  Download  
File: http.auth.eg.php
Role: Example script
Content type: text/plain
Description: Example: Simple Authentication (With Embedded Credential) [not recommended approach]
Class: Basic Realm Authentication Controller
Authenticate users with HTTP basic mechanism
Author: By
Last change: fix session hijacking & fixation
Date: 2013-01-08 20:32
Size: 243 bytes
 

Contents

Class file image Download
<?php


session_start
();
include_once 
'http.auth.cls.php';
new 
HTTPBasicRealmAuth('simple authentication'md5('secured user id'.time()), md5('you can\'t access this file by this kind of password!!!!!!'));

include 
'secure.file.eg.php';