Login   Register  
PHP Classes
elePHPant
Icontem

File: sessionTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of brolewis  >  Locked Session Handler  >  sessionTest.php  >  Download  
File: sessionTest.php
Role: Example script
Content type: text/plain
Description: Example
Class: Locked Session Handler
Session handler with variable locking support
Author: By
Last change: added session_start()
Date: 2004-09-06 20:52
Size: 470 bytes
 

Contents

Class file image Download
<?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");
?>