Documentation

IsOnLine

CUser::IsOnLine(
    $id,
    $interval=120
) 

The method is used to define the "Is Online" status by the user ID. Static method.

Parameters

Parameter Description
idUser ID
interval Time interval in seconds.

Examples of use

Specify time of the user last activity in seconds:

GLOBAL $USER;
CUser::IsOnLine( $USER->GetID() );


© «Bitrix24», 2001-2024
Up