Login   Register  
PHP Classes
elePHPant
Icontem

File: test1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Du  >  postgreSQL_session  >  test1.php  >  Download  
File: test1.php
Role: ???
Content type: text/plain
Description: sample file
Class: postgreSQL_session
Author: By
Last change:
Date: 13 years ago
Size: 563 bytes
 

Contents

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