Bitrix Site Manager

CUser::SetParam

CUser::SetParam(
 string param_name,
 mixed param_value
)

The method SetParam sets the value of the user-defined parameter param_name to be stored in the authorization session (usually called on the $USER object). You can get the parameter value later by calling CUser::GetParam.

Parameters

Parameter Description
param_name Parameter name.
param_value Parameter value.

See Also

Example



<?
global $USER;
$USER->SetParam("IP_LOGIN", $_SERVER['REMOTE_ADDR']);
?>