Ok, 90% of the time I have no problems at all with setting my cookies. Yet, in this script the old "header" error occurs. Any ideas why?
if (isset($login)) {
$check = safe_query("SELECT userID FROM users WHERE username='$username' AND password=md5('$password')");
if(mysql_num_rows($check) == 1) {
setcookie("voodooname", "$username", time()+(3600*24*365));
setcookie("voodooID", "$userID", time()+(3600*24*365));
echo PROCESS;
echo("<meta http-equiv=\"refresh\" content=\"3;URL=../voodoo-gaming/\">");
} else { echo NOUSER; }
}