Код |
---|
AddEventHandler('main', 'OnAfterUserAuthorize', array('CCustomEventHandlers', 'OnAfterUserAuthorizeHandler')); class CCustomEventHandlers { function OnAfterUserAuthorizeHandler(&$arParams) { $GLOBALS['APPLICATION']->set_cookie('LOGIN', '', time()+60*60*24*30*60, '/', false, false, COption::GetOptionString('main', 'auth_multisite', 'N') == 'Y'); } } |