* @copyright 2004 http://www.php-tools.net * @license LGPL **/ // load error handler include_once './_error.php'; // include factory/loader include_once '../patSession.php'; // most easy way to create a session object $sess =& patSession::singleton( 'ham' ); // 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' ) .'"
'; // get query string echo '
Recieve session-query-string, this can be used like the PHP-constant "SID"
'; $queryString = $sess->SID; echo 'Query-string ' . $queryString . ' from this session.
'; echo 'This URL contains the query-string
'; ?>