I am trying to run php4.30 as cgi on IIS5.0 and the following code is giving me problems.
<?
setcookie("user", "johndoe", time()+1800);
header("location: http://www.mysite.com/members");
?>
For some reason the above code will cause the page to redirect, but the cookie will not set. If i remove the header line then the setcookie function will work as normal. Also, the above code will work fine when running php as isapi instead of cgi. Any help?
Thx,
Jason