Index: branches/5.3.x/core/kernel/session/inp_session_storage.php =================================================================== diff -u -N -r15483 -r15677 --- branches/5.3.x/core/kernel/session/inp_session_storage.php (.../inp_session_storage.php) (revision 15483) +++ branches/5.3.x/core/kernel/session/inp_session_storage.php (.../inp_session_storage.php) (revision 15677) @@ -1,7 +1,7 @@ $this->Application->GetDefaultThemeId(), 'GroupId' => $this->Application->ConfigValue('User_GuestGroup'), 'GroupList' => $this->Application->ConfigValue('User_GuestGroup'), + 'IpAddress' => $this->Application->getClientIp(), ); if ( !$this->Application->isAdmin ) { // Guest users on Front-End belongs to Everyone group too $fields_hash['GroupList'] .= ',' . $this->Application->ConfigValue('User_LoggedInGroup'); } - if( isset($_SERVER['REMOTE_ADDR']) ) { - $fields_hash['IpAddress'] = $_SERVER['REMOTE_ADDR']; // getenv('REMOTE_ADDR') won't work on IIS, so use $_SERVER instead - } - return array_merge($fields_hash, parent::GetSessionDefaults()); }