PHP Classes

File: http.auth.eg.php

Recommend this page to a friend!
  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: 11 years ago
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';