How about this one. I am writing a simple bit of code for a logout function when I noticed that my cookies were not being deleted. To test the problem I wrote this:
<?php
unset($_COOKIE["poo"]);
setcookie ("poo","x",time()+31536000);
setcookie ("poo","x",time()-1536000);
header( "Location:../poo.php");
exit;
?>
When I run logout.php and check for cookies in FF there is nothing there, but if I comment out the second line and run it again it creates the cookie as normal.
When I un comment the second line and run it again the cookie is not deleted.
Any ideas why ?
I'm at a complete loss - but sure it's something completely stupid.
Cheers in advance