* @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( 'money', 'Null' ); echo "Whatever you save, it will not survive the next request!
\n"; if( isset( $_REQUEST['continue'] ) && $_REQUEST['continue'] == 'try' ) { echo "See what was saved in the European bank account: "; var_dump( $sess->get( 'account_euro' ) ); echo "
\n"; echo "See what was saved in the Australian bank account: "; var_dump( $sess->get( 'account_dollar' ) ); echo "
\n"; } else { echo "Try to save 50 Euro in our European bank account...
\n"; $sess->set( 'account_euro', '50,-- Euro' ); echo "Try to save 50 Dollar in our Australian bank account...
\n"; $sess->set( 'account_dollar', '$50' ); } $queryString = $sess->getQueryString(); echo '- Continue this session - or at least try to!
'; ?>