<?php
session_start();
include_once "session.class.php";
$session = new Session();
//Set Session
$session->setSess("name","Lewis Franklin");
echo $session->getSess("name");
echo "<br /><br />";
//Lock Session
$session->lockSess("name");
$session->setSess("name", "John Doe");
echo $session->getSess("name");
echo "<br /><br />";
//Unlock Session
$session->unlockSess("name");
$session->setSess("name", "John Doe");
echo $session->getSess("name");
?>
|