Show
Ignore:
Timestamp:
03/15/06 23:15:57 (3 years ago)
Author:
gerd
Message:

Some code cleanup and merge patSession2 to trunk!
This version DOES NOT SUPPORT PHP 4!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/example_secure_useToken.php

    r34 r46  
    1212 * @license LGPL 
    1313 **/ 
    14         error_reporting( E_ALL ); 
     14    // load error handler 
     15    include_once './_error.php'; 
    1516 
    16         // include error-manager 
    17         include_once '../../patError/patErrorManager.php'; 
    18         patErrorManager::setErrorHandling( E_ERROR, 'verbose' ); 
    19         patErrorManager::setErrorHandling( E_WARNING, 'verbose' ); 
    20         patErrorManager::setErrorHandling( E_NOTICE, 'verbose' ); 
    21          
    2217        // include factory/loader 
    2318        include_once '../patSession.php'; 
     
    2520        $options        =       array(   
    2621                                                        'security'              => 'use_token', 
    27                                                         'tokenmode'             => 'any', 
     22                                                        'token-mode'    => 'any', 
     23                            'token-name'    => 'mytoken', // for cookies only 
    2824                                                        'empty-referer' => 'allow' 
    2925                                                );