i have an autoaction that i use onafterregistration trigger and this code in that:
Code:
global $_PLUGINS;
if (isset($_COOKIE['btn'])) {
$url = $_COOKIE['btn'];
unset($_COOKIE['btn']);
setcookie('btn', null, -1, '/');
$app = JFactory::getApplication();
$app->enqueueMessage('Redirect to another page was successful', 'success');
$app->redirect(JRoute::_($url));
$_PLUGINS->trigger( 'onAfterSaveUserRegistration', array( &$user, &$user, true ) );
//header('Location: '.$url);
}
i disable this auto action but it is steel working. what is the problem?