Changeset 468 for trunk/lib/DBSessionHandler.inc.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/lib/DBSessionHandler.inc.php
r398 r468 32 32 class DBSessionHandler { 33 33 34 var$db; // DB object.34 public $db; // DB object. 35 35 36 var$_params = array(36 private $_params = array( 37 37 'db_table' => 'session_tbl', 38 38 … … 51 51 * @since 18 Jul 2005 11:02:50 52 52 */ 53 function DBSessionHandler($db, $params=array())53 public function __construct($db, $params=array()) 54 54 { 55 55 $app =& App::getInstance(); … … 94 94 * @since 26 Aug 2005 17:09:36 95 95 */ 96 function initDB($recreate_db=false)96 public function initDB($recreate_db=false) 97 97 { 98 98 $app =& App::getInstance(); … … 121 121 } 122 122 123 function dbSessionOpen($save_path, $sess_name)123 public function dbSessionOpen($save_path, $sess_name) 124 124 { 125 125 return true; 126 126 } 127 127 128 function dbSessionClose()128 public function dbSessionClose() 129 129 { 130 130 return true; 131 131 } 132 132 133 function dbSessionRead($session_id)133 public function dbSessionRead($session_id) 134 134 { 135 135 // Select the data belonging to session $session_id from the session table … … 146 146 } 147 147 148 function dbSessionWrite($session_id, $session_data)148 public function dbSessionWrite($session_id, $session_data) 149 149 { 150 150 // Write the serialized session data ($session_data) to the session table … … 154 154 } 155 155 156 function dbSessionDestroy($session_id)156 public function dbSessionDestroy($session_id) 157 157 { 158 158 // Delete from the table all data for the session $session_id … … 162 162 } 163 163 164 function dbSessionGarbage($max_lifetime=72000)164 public function dbSessionGarbage($max_lifetime=72000) 165 165 { 166 166 // Delete old values from the session table. … … 171 171 } 172 172 173 ?>
Note: See TracChangeset
for help on using the changeset viewer.