Changeset 373 for trunk/lib/DBSessionHandler.inc.php
- Timestamp:
- Jun 2, 2010 5:25:56 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/DBSessionHandler.inc.php
r362 r373 73 73 $this->initDB(); 74 74 75 ini_set('session.save_handler', 'user');76 75 session_set_save_handler( 77 76 array(&$this, 'dbSessionOpen'), … … 82 81 array(&$this, 'dbSessionGarbage') 83 82 ); 83 register_shutdown_function('session_write_close'); 84 84 } 85 85 } … … 126 126 127 127 function dbSessionClose() 128 { 128 { 129 129 return true; 130 130 } … … 161 161 } 162 162 163 function dbSessionGarbage($max_lifetime= 4000)163 function dbSessionGarbage($max_lifetime=72000) 164 164 { 165 // Delete old values from the session table 165 // Delete old values from the session table. 166 166 $qid = $this->db->query("DELETE FROM " . $this->db->escapeString($this->_params['db_table']) . " WHERE UNIX_TIMESTAMP(last_access) < " . (time() - $max_lifetime)); 167 167
Note: See TracChangeset
for help on using the changeset viewer.