Login   Register  
PHP Classes
elePHPant
Icontem

File: test_session.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Benjamin Boigienman  >  Anti-Hacking Session Manager  >  test_session.php  >  Download  
File: test_session.php
Role: Example script
Content type: text/plain
Description: Test
Class: Anti-Hacking Session Manager
User session management with security features
Author: By
Last change:
Date: 2005-05-03 06:45
Size: 266 bytes
 

Contents

Class file image Download
<?php

include("class_session.inc.php");
$session = new Session();

if(
$session->isValid()){//Test if the session has not been stolen
    
print_r($session->getVar("test"));

    unset(
$session);
    
session_destroy();
}
else 
    echo 
$session->getLastError();

?>