Changeset 35 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Dec 13, 2005 7:43:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r34 r35 468 468 // Tesing login should occur once. This is the first time. Set flag. 469 469 $this->_authentication_tested = true; 470 470 471 471 // Some users will access from networks with a changing IP number (i.e. behind a proxy server). These users must be allowed entry by adding their IP to the list of trusted_networks. 472 472 if ($trusted_net = ipInRange(getRemoteAddr(), $this->_params['trusted_networks'])) { … … 513 513 } else if (isset($_SESSION[$this->_sess]) && true === $_SESSION[$this->_sess]['authenticated']) { 514 514 // User is authenticated, but login has expired. 515 App::raiseMsg(sprintf(_("Your %s session has closed. You need to log-in again."), strtolower($this->_auth)), MSG_NOTICE, __FILE__, __LINE__); 515 if (strtotime($_SESSION[$this->_sess]['last_access_datetime']) > time() - 43200) { 516 // Only raise message if last session is less than 12 hours old. 517 App::raiseMsg(sprintf(_("Your %s session has closed. You need to log-in again."), strtolower($this->_auth)), MSG_NOTICE, __FILE__, __LINE__); 518 } 516 519 517 520 // Log the reason for login expiration.
Note: See TracChangeset
for help on using the changeset viewer.