Index: branches/5.1.x/core/kernel/session/inp_session.php =================================================================== diff -u -N -r13086 -r13581 --- branches/5.1.x/core/kernel/session/inp_session.php (.../inp_session.php) (revision 13086) +++ branches/5.1.x/core/kernel/session/inp_session.php (.../inp_session.php) (revision 13581) @@ -1,6 +1,6 @@ $this->Application->isAdmin ? 0 : -2, // Guest + 'PortalUserId' => $this->Application->isAdmin ? 0 : USER_GUEST, 'Language' => $this->Application->GetDefaultLanguageId(true), 'Theme' => $this->Application->GetDefaultThemeId(), 'IpAddress' => $_SERVER['REMOTE_ADDR'], // getenv('REMOTE_ADDR') won't work on IIS, so use $_SERVER instead