<?php
/**
* including of the interface
*/
require_once(dirname(__FILE__)."/SessionObject.php");
/**
* including of the SessionSaver class
*/
require_once(dirname(__FILE__)."/SessionSaver.php");
/**
* including of the ExampleClass class
*/
require_once(dirname(__FILE__)."/ExampleClass.php");
$objectsForSaving = array("ExampleClass");
SessionSaver::addObjects($objectsForSaving);
if (empty($_SESSION)) {
session_start();
}
SessionSaver::restoreObjects();
$testclass = new ExampleClass();
$testclass->printMyInfo();
SessionSaver::saveObjects();
?>
<a href="example.php">Load this page again</a>
|