I have just moved to a new server and I am now getting an error with PHP script that writes a cookie.
My code is:
setcookie("Poll", "Y", "","", "mysite.com", "0");
and I get the following error:
Warning: setcookie() expects parameter 3 to be long, string given in /home/usr/public_html/index.php on line 3
Is there a setup file in PHP that needs updating as using "" as the expiration date worked fine on my old server for setting a cookie that only lasted the duration of the browser session?