PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Heiko Dillemuth   OO Auth   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example Scipt to test the Class (works with class_ooauth_login.php
Class: OO Auth
Manage life time limited sessions securely
Author: By
Last change:
Date: 20 years ago
Size: 663 bytes
 

Contents

Class file image Download
<?php
######################################################################################
#
# Simple test Script for class: ooauth
#
# (c) Heiko at dillemuth . de, 2004-07-01, 2004-07-20
######################################################################################


include "class_ooauth.php";
$ooauth_remote_addr=& $_SERVER['REMOTE_ADDR']; #Get IP
$ooauth=& new ooauth("pabs2+");

if(
$_REQUEST[logout]) #Logout Request
$ooauth->kill_session(1);

#Test Session
if($ooauth->test_session(5)) {

   
header("Location: class_ooauth_login.php\n\n"); #Redirect if not valid session
   
exit();
}


?>
Session is valid for next 5 Sec.!