Changeset 159
- Timestamp:
- 05/05/06 00:48:24 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix-modules/auth/plugins/auth/auth.plugin.php
r150 r159 55 55 } 56 56 if(!$notLogged && $this->config['timeout']){ 57 if(!isset($_SESSION['JELIX_AUTH_LASTTIME']) 58 || (mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 59 $notLogged = true; 60 jAuth::logout(); 57 if(isset($_SESSION['JELIX_AUTH_LASTTIME'])){ 58 if((mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 59 $notLogged = true; 60 jAuth::logout(); 61 unset($_SESSION['JELIX_AUTH_LASTTIME']); 62 }else{ 63 $_SESSION['JELIX_AUTH_LASTTIME'] =mktime(); 64 } 61 65 }else{ 62 66 $_SESSION['JELIX_AUTH_LASTTIME'] =mktime();
