Documentation

OnBeforeUserLogout

bool
handler function(
array &arParams );

The event fires before the user authorization completes from within the method CUser::Logout and can be used to cancel the log-out.

Parameters

ParameterDescription
arParams Array of parameters:
  • USER_ID - user ID

See Also

Example of handler function:

<?
// file /bitrix/php_interface/init.php
// register the handler  
AddEventHandler("main", "OnBeforeUserLogout", Array("MyClass", "OnBeforeUserLogoutHandler"));
class MyClass { public static function OnBeforeUserLogoutHandler($arParams) { if($arParams['ID']==10) return false; } } ?>

Example of handler function registration:

<?
// register the event "OnBeforeUserLogout"
RegisterModuleDependences("main", "OnBeforeUserLogout", 
"my_module_id", "MyClass", "OnBeforeUserLogoutHandler");?>


© «Bitrix24», 2001-2024
Up