Ok, I have changed my code so the headers are sent as: header("HTTP/1.0 302 Redirect"); header("Location: index2.php"); header("Set-Cookie: USER_COOKIE=$sUser");
I have changed the file name to nph-unsecure.php It successfully sends me to the index2.php page, but no cookie... any ideas "Joaco" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a small problem was wondering if anyone out there knew anyhting about this. I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this?