I cant create a firefox cookie with following line:
setcookie("TestCookie", $value, time()+3600, "/", "localhost");
does someone know why? i have checked the settings in FF and it accepts cookies from 3rd parties and are deleted when they expire.
EDIT: i can create now with this line:
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
setcookie('cookiename', 'data', time()+60*60*24*365, '/', $domain, false);
but how do i delete it?
i tried with just switching the + to - but it didnt work.
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
setcookie('cookiename', 'data', time()-60*60*24*365, '/', $domain, false);