General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetAnonymousUserID
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
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 |
---|---|
id | User 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