* @copyright 2004 http://www.php-tools.net * @license LGPL **/ // load error handler include_once './_error.php'; // include factory/loader include_once '../patSession.php'; $options = array( 'security' => 'fix_browser', ); // most easy way to create a session object $sess =& patSession::singleton( 'ham', 'Native', $options ); $queryString = $sess->getQueryString(); ?> Use the 'security' option if you need to customize the session-fixiation-features of patSession. By default (for maximum security) the session will fixed to browser, ip and referer. If any security-check fails all session values will be cleared and the session itself will switch to a different state (not active).

Current options passed to session:

	

fix_browser:
If this features is turned on, the session will be fixed to the user-agent. Try to use the this URL with another browser: this URL

'; ?>

get( 'security-test' ); if( patErrorManager::isError( $result ) ) { echo '
Session-state: ' . $sess->getState() . '
'; } else { echo '
The session reported no errors.
'; } ?>