I won't paste all the code because it is too long. However, it is a login script that sets cookies when the user/pass has been approved. Then I want the user sent to a new page with the header function. Is it possible that the browest is redirected to a new page before the cookies are set? I am unsure.
setcookie("cookie_user", md5($user), time()+$cto, "/", "", 0);
setcookie("cookie_session", "$session", time()+$cto, "/", "", 0);
header("Location: check_user.php");
Damien.