Index: trunk/core/units/general/inp_ses_storage.php =================================================================== diff -u -N -r3884 -r3887 --- trunk/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3884) +++ trunk/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3887) @@ -72,7 +72,7 @@ function StoreSession(&$session, $additional_fields = Array()) { - $fields_hash = Array( 'PortalUserId' => -2, // Guest + $fields_hash = Array( 'PortalUserId' => $this->Application->IsAdmin() ? 0 : -2, // Guest 'Language' => $this->Application->GetDefaultLanguageId(), 'Theme' => $this->Application->GetDefaultThemeId(), 'IpAddress' => $_SERVER['REMOTE_ADDR'], Index: trunk/admin/logs/session_list.php =================================================================== diff -u -N -r3330 -r3887 --- trunk/admin/logs/session_list.php (.../session_list.php) (revision 3330) +++ trunk/admin/logs/session_list.php (.../session_list.php) (revision 3887) @@ -151,7 +151,9 @@ $sql .=" as us LEFT JOIN ".GetTablePrefix()."PortalUser as p USING (PortalUserId) "; $sql .="LEFT JOIN ".GetTablePrefix()."UserGroup as u ON (p.PortalUserId=u.PortalUserId AND u.PrimaryGroup=1) "; $sql .="LEFT JOIN ".GetTablePrefix()."PortalGroup as g ON (u.GroupId=g.GroupId) "; -$sql .= " WHERE (us.Status = 1) AND (us.PortalUserId <> -1) AND ( LENGTH(us.PortalUserId) > 0) "; +$sql .= " WHERE (us.Status = 1) AND (us.PortalUserId NOT IN (0,-1)) "; + +// ProtalUserId = {0 - admin not logged-in session, -1 - root logged in admin} if(strlen($where)) { $sql .= "AND ".$where; } Index: trunk/kernel/units/general/inp_ses_storage.php =================================================================== diff -u -N -r3884 -r3887 --- trunk/kernel/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3884) +++ trunk/kernel/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3887) @@ -72,7 +72,7 @@ function StoreSession(&$session, $additional_fields = Array()) { - $fields_hash = Array( 'PortalUserId' => -2, // Guest + $fields_hash = Array( 'PortalUserId' => $this->Application->IsAdmin() ? 0 : -2, // Guest 'Language' => $this->Application->GetDefaultLanguageId(), 'Theme' => $this->Application->GetDefaultThemeId(), 'IpAddress' => $_SERVER['REMOTE_ADDR'],