Index: trunk/kernel/include/portaluser.php =================================================================== diff -u -r155 -r228 --- trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 155) +++ trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 228) @@ -183,7 +183,9 @@ function LoadPersistantVars() { - unset($this->Vars); + global $objConfig; + + unset($this->Vars); $this->Vars = array(); $user_id = $this->HasField('PortalUserId') ? $this->Get('PortalUserId') : 0; $sql = "SELECT VariableName, VariableValue FROM ".GetTablePrefix()."PersistantSessionData WHERE PortalUserId = 0 OR PortalUserId = ".$user_id." ORDER BY PortalUserId ASC"; @@ -192,6 +194,7 @@ { $data = $result->fields; $this->Vars[$data["VariableName"]] = $data["VariableValue"]; + $objConfig->Set($data["VariableName"], $data["VariableValue"], 1, 1); $result->MoveNext(); } $this->VarsLoaded=TRUE; @@ -203,7 +206,7 @@ if(!$this->VarsLoaded) $this->LoadPersistantVars(); - $userid = $this->Get("PortalUserId"); + $userid = $this->Get("PortalUserId"); $objConfig->Set($variableName,$variableValue,1); $fields = array_keys($this->Vars);