Development

Changeset 5704

You must first sign up to be able to contribute.

Changeset 5704

Show
Ignore:
Timestamp:
10/26/07 21:47:34 (1 year ago)
Author:
pookey
Message:

now only logged in user sessions are timed out

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/user/sfBasicSecurityUser.class.php

    r5160 r5704  
    225225      $this->credentials   = array(); 
    226226    } 
    227  
    228     // Automatic logout if no request for more than [sf_timeout] 
    229     if (null !== $this->lastRequest && (time() - $this->lastRequest) > sfConfig::get('sf_timeout')) 
    230     { 
    231       if (sfConfig::get('sf_logging_enabled')) 
    232       { 
    233         $this->getContext()->getLogger()->info('{sfUser} automatic user logout'); 
    234       } 
    235       $this->setTimedOut(); 
    236       $this->setAuthenticated(false); 
     227    else 
     228    { 
     229      // Automatic logout logged in user if no request within [sf_timeout] setting 
     230      if (null !== $this->lastRequest && (time() - $this->lastRequest) > sfConfig::get('sf_timeout')) 
     231      { 
     232        if (sfConfig::get('sf_logging_enabled')) 
     233        { 
     234          $this->getContext()->getLogger()->info('{sfUser} automatic user logout due to timeout'); 
     235        } 
     236        $this->setTimedOut(); 
     237        $this->setAuthenticated(false); 
     238      } 
    237239    } 
    238240