Changeset 40 for branches/patSession2/examples/example_basic_options.php
- Timestamp:
- 01/18/06 09:20:02 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/patSession2/examples/example_basic_options.php
r15 r40 12 12 * @license LGPL 13 13 **/ 14 error_reporting( E_ALL ); 15 16 // include error-manager 17 include_once '../../patError/patErrorManager.php'; 18 19 patErrorManager::setErrorHandling( E_ERROR, 'verbose' ); 14 // load error handler 15 include_once './_error.php'; 20 16 21 17 // include factory/loader … … 24 20 25 21 $options = array( 26 'name' => 'patSession', 27 'id' => 'VERY0STRANGE0SESSION0ID', 22 'name' => 'psid', 23 'id' => 'VeryStrangeSessionId', 24 'id-prefix' => '01x', 28 25 'expire' => 5, 29 26 'security' => 'fix-browser,fix-ip,fix-referer', … … 40 37 <ul> 41 38 <li> 42 <b>name:</b> internalsession name39 <b>name:</b> session name 43 40 </li> 44 41 <li> 45 <b>id:</b> use a custom session id 42 <b>id:</b> use a custom session id<br /> 43 You hardly use this. 46 44 </li> 45 <li> 46 <b>id-prefix:</b> prefix to be added to each session id<br /> 47 E.g. you want to add the server's id 48 </li> 47 49 <li> 48 50 <b>expire:</b> maximum idle timeout … … 70 72 // get query string 71 73 echo '<br/>Recieve session-query-string, this can be used like the PHP-constant "SID"<br />'; 72 $queryString = $sess-> getQueryString();74 $queryString = $sess->SID; 73 75 echo 'Query-string <i>' . $queryString . '</i> from this session.<br />'; 74 76 echo 'This <a href="' . $_SERVER['PHP_SELF'] . '?' . $queryString . '" title="'. $_SERVER['PHP_SELF'] . '?' . $queryString .'">URL</a> contains the query-string<br />';
