Bitrix Site Manager

CUser::IsAuthorized

bool
CUser::IsAuthorized()

The method IsAuthorized checks if the site visitor has been authorized (usually called from the $USER object). Returns true if the user is authorized, or false otherwise.

Parameters

No parameters.

See Also

Example



<?
global $USER;
if ($USER->IsAuthorized()) echo "You are authorized!";
?>