Index: branches/5.1.x/core/kernel/session/session.php =================================================================== diff -u -N -r14360 -r14438 --- branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 14360) +++ branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 14438) @@ -1,6 +1,6 @@ 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: branches/5.1.x/core/units/logs/session_logs/session_log_eh.php =================================================================== diff -u -N -r14241 -r14438 --- branches/5.1.x/core/units/logs/session_logs/session_log_eh.php (.../session_log_eh.php) (revision 14241) +++ branches/5.1.x/core/units/logs/session_logs/session_log_eh.php (.../session_log_eh.php) (revision 14438) @@ -1,6 +1,6 @@ $_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);