Index: branches/5.2.x/core/kernel/session/session_storage.php =================================================================== diff -u -N -r14572 -r14585 --- branches/5.2.x/core/kernel/session/session_storage.php (.../session_storage.php) (revision 14572) +++ branches/5.2.x/core/kernel/session/session_storage.php (.../session_storage.php) (revision 14585) @@ -1,7 +1,7 @@ TableName.' WHERE '.$this->IDField.' = '.$this->Conn->qstr($this->Session->SID); - $this->Conn->Query($query); + $this->DeleteSessions( Array ($this->Session->SID), SESSION_LOG_LOGGED_OUT ); - $query = ' DELETE FROM '.$this->SessionDataTable.' WHERE '.$this->IDField.' = '.$this->Conn->qstr($this->Session->SID); - $this->Conn->Query($query); - $this->DirectVars = $this->ChangedDirectVars = $this->OriginalData = Array(); } @@ -311,7 +307,7 @@ // delete debugger ouputs left of deleted sessions foreach ($session_ids as $session_id) { - $debug_file = WRITEABLE . '/cache/debug_@' . $session_id . '@.txt'; + $debug_file = (defined('RESTRICTED') ? RESTRICTED : WRITEABLE . '/cache') . '/debug_@' . $session_id . '@.txt'; if (file_exists($debug_file)) { @unlink($debug_file); }