<?php
//Sample file - Demonstrates the use of SessionCookie
require ("session.php");
$s = new sessioncookie();
//Open connection to db
$s->connect2db();
//Load session variables or start new session
$s->start();
//Print the variables
echo "After session_start() : \n<br><ul>" ;
echo "<li> \$name = ".$name."\n<br>";
echo "<li> \$mail = ".$mail."\n<br></ul>";
$s->unregister("mail");
echo "After session_unregister() : \n<br><ul>" ;
echo "<li> \$name = ".$name."\n<br>";
echo "<li> \$mail = ".$mail."\n<br></ul>";
$s->save();
?>
|