Index: trunk/core/units/general/inp_ses_storage.php =================================================================== diff -u -N -r3508 -r3884 --- trunk/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3508) +++ trunk/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 3884) @@ -33,6 +33,7 @@ if( !$this->Application->IsAdmin() && $this->GetField('PortalUserId') <= 0 ) { $group_list = $this->Application->ConfigValue('User_GuestGroup').','.$this->Application->ConfigValue('User_LoggedInGroup'); + $this->SetField('GroupId', $this->Application->ConfigValue('User_GuestGroup')); $this->SetField('GroupList', $group_list); } } @@ -69,11 +70,18 @@ } - function StoreSession(&$session) + function StoreSession(&$session, $additional_fields = Array()) { - parent::StoreSession($session); - $this->SetField($session, 'IpAddress', $_SERVER['REMOTE_ADDR']); - $this->SetField($session, 'GroupList', $this->Application->ConfigValue('User_GuestGroup')); + $fields_hash = Array( 'PortalUserId' => -2, // Guest + 'Language' => $this->Application->GetDefaultLanguageId(), + 'Theme' => $this->Application->GetDefaultThemeId(), + 'IpAddress' => $_SERVER['REMOTE_ADDR'], + 'GroupList' => $this->Application->ConfigValue('User_GuestGroup'), + 'CurrentTempKey'=> $session->SID, + + ); + + parent::StoreSession($session, $fields_hash); } function GetExpiredSIDs()