Documentation

SetParam

CUser::SetParam(
 string name,
 mixed value
)

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

Parameters

Parameter Description
name Arbitrary parameter.
value Parameter value.

See Also

Examples of use

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


© «Bitrix24», 2001-2022
Up