bool
event_handler(
array &arParams
);
The OnBeforeUserLogout event fires before the user authorization completes from within the method CUser::Logout and can be used to cancel the log-out.
Parameters
Parameter | Description |
arParams |
Array of parameters:
|
See Also
Example
<?
// file /bitrix/php_interface/init.php
// register event handler
AddEventHandler("main",
"OnBeforeUserLogout",
Array("MyClass",
"OnBeforeUserLogoutHandler"));
class MyClass
{
function OnBeforeUserLogoutHandler($arParams)
{
if ($arParams['ID']==10)
return false;
}
}
?>
Example of handler registration
<?
// register handler "OnBeforeUserLogout"
RegisterModuleDependences("main", "OnBeforeUserLogout",
"my_module_id", "MyClass", "OnBeforeUserLogoutHandler");?>