* @copyright 2004 http://www.php-tools.net * @license LGPL **/ // load error handler include_once './_error.php'; // include factory/loader include_once '../patSession.php'; patSession::addIncludeDir( dirname( __FILE__ ) . '/include/custom' ); patSession::addIncludeDir( '/my/own/storage/containers' ); patSession::addIncludeDir( '/this/folder/is/rubish' ); // most easy way to create a session object $sess =& patSession::singleton( 'ham', 'Example' ); echo "
\n"; // store a value echo '
Store some values into session...
'; $sess->set( 'fb', 'fine business' ); $sess->set( 'fr', 'for' ); $sess->set( 'fm', 'frequence modulation' ); $sess->set( 'gb', 'good bye' ); $sess->set( 'ham', 'radio ham' ); echo '
Restore some values from session object
'; echo 'fb: "'. $sess->get( 'fb' ) .'"
'; echo 'fm: "'. $sess->get( 'fm' ) .'"
'; echo "
\n"; ?>