Recently my setcookies function stopped working. I have written my server and they told me that several people were having problems since they update PHP. It seems to be a problem with the third variable (time)
My original code was:
setcookie("a1", $a1,time()+1200);
It works when I remove the third variable time()+1200.
For example: setcookie ("TestCookie", "Test Value");
Has anyone had this problem recently, and if so how was it resolved. I already tried using the following without any luck:
$settime=time()+1200;
setcookie ("TestCookie", "Test Value", $settime);