PHP Classes

File: test_session.php

Recommend this page to a friend!
  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: 17 years ago
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();

?>