Código PHP:
$_SESSION['uid'] = $row['id'];
set_tmp($togkey,'deleteit');
if (strlen($_COOKIE['j_return_url'])) {
setcookie('j_return_url', '', time()+3600*24*365,"/");
redirect(url($_COOKIE['j_return_url']));
}
else {
redirect(my_jcow_home());
}
exit;
}
Código PHP:
$_SESSION['uid'] = $row['id'];
set_tmp($togkey, 'deleteit');
redirect(url('dashboard'));
exit;
} else {
$atempts++;
$_SESSION['login_cd']--;
set_tmp($togkey, $atempts);
sys_notice(t('Wrong account or password'));
}
}