Show
Ignore:
Timestamp:
09/05/06 23:00:01 (2 years ago)
Author:
gerd
Message:

- support for autopackage
- added feature: custom driver

Files:

Legend:

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

    r46 r49  
    2121        $sess   =&      patSession::singleton( 'ham' ); 
    2222 
    23         if( isset( $_REQUEST['restart'] ) &&  $_REQUEST['restart'] == 'force' ) 
    24         { 
     23        if( isset( $_REQUEST['restart'] ) &&  $_REQUEST['restart'] == 'force' ) { 
    2524                $sess->restart(); 
    2625        } 
    2726         
    2827        // see wheter the started session is new 
    29         if( $sess->isNew() ) 
    30         { 
     28        if( $sess->new ) { 
    3129                echo '<b>Hurray!</b> A new session was born! :-)<br />'; 
    32         } 
    33         else 
    34         { 
     30        } else { 
    3531                echo '<b>Continue</b> session...<br />'; 
    3632        } 
    3733         
    3834        // recieve the session counter 
    39         echo 'Session  Counter: <b>' . $sess->getCounter() . '</b><br />'; 
     35        echo 'Session  Counter: <b>' . $sess->counter . '</b><br />'; 
    4036         
    4137        // get query string 
    4238        echo '<br />'; 
    43         $queryString    =       $sess->getQueryString()
     39        $queryString    =       $sess->SID
    4440        echo '- <a href="' . $_SERVER['PHP_SELF'] . '?' . $queryString . '" title="'. $_SERVER['PHP_SELF'] . '?' . $queryString .'">Continue this session</a> <br />'; 
    4541        echo '- <a href="' . $_SERVER['PHP_SELF'] . '" title="'. $_SERVER['PHP_SELF'] . '">Start over</a> (make sure, that you don\'t send cookies!) <br />';