Changeset 2649
- Timestamp:
- 05/07/08 06:24:24 (3 months ago)
- Files:
-
- trunk/system/libraries/Session.php (modified) (2 diffs)
- trunk/system/libraries/drivers/Session/Database.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/system/libraries/Session.php
r2627 r2649 250 250 if (isset($_SESSION)) 251 251 { 252 // Destroy the session 253 session_destroy(); 254 252 255 // Remove all session data 253 256 session_unset(); … … 255 258 // Delete the session cookie 256 259 cookie::delete(self::$config['name']); 257 258 // Destroy the session259 session_destroy();260 260 261 261 // Re-initialize the array trunk/system/libraries/drivers/Session/Database.php
r2009 r2649 125 125 public function destroy($id) 126 126 { 127 $config = Config::item('session'); 128 129 ($config['regenerate'] > 0 AND ($_SESSION['total_hits'] % $config['regenerate']) === 0) AND $id = $this->old_id; 130 127 131 return (bool) $this->db->delete($this->db_group, array('session_id' => $id))->count(); 128 132 }
