|
Posted by Rik on 02/15/07 16:53
On Thu, 15 Feb 2007 17:40:36 +0100, comper <comper@centrum.sk> wrote:
> I have problem:
> function setcookies does not work under Xp + IE
> i wrote
>
> setcookie('name', '$value', false, '/', 'false', 0);
>
> its all in php script and nothing, no cookies sent. But only on IE, i
> start page on Opera or Mozzilla and it works, only on IE no.
> Dont know anyone reason?
> Please help, thanks
The string 'false' is no DNS... expire should be an integer, here it's
false cast to 0, which PHP forgives you. I suspect (haven't checked it)
that Opera & Mozilla repair your broken domain, and MSIE doesn't.
What about:
setcookie ($name,$value,0 ,'/');
Or if you want to be explicit:
setcookie ($name,$value,0 ,'/',$_SERVER['HTTP_HOST'],false);
--
Rik Wasmus
[Back to original message]
|