* @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' );
if( isset( $_REQUEST['restart'] ) && $_REQUEST['restart'] == 'force' )
{
$sess->restart();
}
// see wheter the started session is new
if( $sess->isNew() )
{
echo 'Restarted Session container is empty
';
}
else
{
echo 'Continue session...
';
$count = $sess->getCounter();
$sess->set( 'fill_'. $count, 'Fill the session container with stupid values ' . $count );
}
echo '
'; echo $sess; echo ''; // get query string echo '