Index: kernel/session/session.php =================================================================== --- kernel/session/session.php (revision 14318) +++ kernel/session/session.php (working copy) @@ -172,12 +172,8 @@ function DeleteSession(&$session) { - $query = ' DELETE FROM '.$this->TableName.' WHERE '.$this->IDField.' = '.$this->Conn->qstr($session->SID); - $this->Conn->Query($query); + $this->DeleteSessions( Array ($session->SID), SESSION_LOG_LOGGED_OUT ); - $query = ' DELETE FROM '.$this->SessionDataTable.' WHERE '.$this->IDField.' = '.$this->Conn->qstr($session->SID); - $this->Conn->Query($query); - $this->DirectVars = $this->ChangedDirectVars = $this->OriginalData = Array(); } Index: units/logs/session_logs/session_log_eh.php =================================================================== --- units/logs/session_logs/session_log_eh.php (revision 14318) +++ units/logs/session_logs/session_log_eh.php (working copy) @@ -36,7 +36,7 @@ 'IP' => $_SERVER['REMOTE_ADDR'], 'PortalUserId' => $this->Application->RecallVar('user_id'), 'SessionId' => $this->Application->GetSID(), - 'Status' => 0, + 'Status' => SESSION_LOG_ACTIVE, ); $object->SetDBFieldsFromHash($fields_hash); @@ -65,7 +65,7 @@ $fields_hash = Array ( 'SessionEnd' => adodb_mktime(), - 'Status' => 1, + 'Status' => SESSION_LOG_LOGGED_OUT, ); $object->SetDBFieldsFromHash($fields_hash);