Bitrix Site Manager

OnAfterUserLogout event

event_handler(
 array &arParams
);

The OnAfterUserLogout event fires after the user authorization completes.

Parameters

ParameterDescription
arParams Array of parameters:
  • ID - user ID;
  • SUCCESS - operation result. If true, the authorization completed successfully. If false, an error occurred or the authorization has been canceled from the OnBeforeUserLogout handler.

See Also

Example



<?
// file /bitrix/modules/my_module_id/include.php
class MyClass
{
    // create the OnAfterUserLogout handler
    function OnAfterUserLogoutHandler($arParams)
    {
        // perform actions related to authorization
        ...
    }
}
?>

Example of handler registration


<?
// register handler OnAfterUserLogout
RegisterModuleDependences("main", "OnAfterUserLogout", 
                          "my_module_id", "MyClass", 
                          "OnAfterUserLogoutHandler");
?>