Changeset 9971
- Timestamp:
- 11/18/08 17:54:05 (2 months ago)
- Files:
-
- branches/0.8/jaws/html/include/Jaws/Session.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/0.8/jaws/html/include/Jaws/Session.php
r9832 r9971 119 119 include_once JAWS_PATH . 'include/Jaws/Session/Cache.php'; 120 120 $this->_cache = new Jaws_Session_Cache; 121 // Delete expired sessions122 // FIXME: Maybe we can store a value in JAWS_DATA/last_expired123 // (or something) and use it to run this code only if124 // last_expired > time to delete expired sessions125 $this->_cache->DeleteExpiredSessions();126 121 } 127 122 … … 238 233 function Load($session_id) 239 234 { 235 if ($GLOBALS['app']->IsAgentRobot()) { 236 return false; 237 } 238 240 239 if (isset($GLOBALS['log'])) { 241 240 $GLOBALS['log']->Log(JAWS_LOG_DEBUG, 'Loading session'); … … 243 242 244 243 $result = false; 244 245 // Delete expired sessions 246 // FIXME: Maybe we can store a value in JAWS_DATA/last_expired 247 // (or something) and use it to run this code only if 248 // last_expired > time to delete expired sessions 249 $this->_cache->DeleteExpiredSessions(); 250 245 251 $session = $this->_cache->GetSession($session_id); 246 252 if (is_array($session)) { … … 278 284 function Create($username, $remember) 279 285 { 280 if ($GLOBALS['app']->IsAgentRobot()) {281 return false;282 }283 284 286 $info = array(); 285 287 if (empty($username)) {
