this code does not set cookie : TestCookie, but if I remove redirect code then it works. But I need it working with redirect, how can I do that?
<? setcookie ("TestCookie", "TestCookie Value",time()+3600); header("Location:cookie2.php"); ?>