Documentation

OnAfterUserLogout

handler function(
 array &arParams
);
The event OnAfterUserLogout is called after user authorization is complete.

Parameters

ParameterDescription
arParams Array of parameters:
  • USER_ID - user ID
  • SUCCESS - result: authorization is complete if true. Returns false in case of an error or if authorization is cancelled by the event handler OnBeforeUserLogout.

See Also

Example of handler function:

<?
// file /bitrix/modules/my_module_id/include.php
class MyClass
{
    // create the event handler "OnAfterUserLogout"
    function OnAfterUserLogoutHandler($arParams)
    {
        // execute everything related to completion of authorization 
        ...
    }
}
?>

Example of handler function registration:

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


© «Bitrix24», 2001-2022
Up