cookies... IE7 won't set them

I got this code (snippet of my site). I expect cookies to be set. But no.
Sometimes (!) it works, but them retsrt IE7 and... again no! Any ideas? I'm
pretty sick of it. It just sticks to value 'nl'.

FFox does it exactly the way I expect it to behave. And don;t tell me to use
Ffox. I use it. But other people need to read my site too ;-)

Just to be sure the cache won't hurt I added the time(). Output is below.

Thanks in advance, I hope somebody has a good idea!
Kees
_________

<?php
function br()
{
return "<br/>";
}
function a($a,$b)
{
return "<a href=\"$a\">$b</a>";
}
setcookie("language","$newlang",time()+52*604800,"/start/",w ww.mysite.com);
echo time();
echo "<pre>";
print_r($_COOKIE);
echo "</pre>";
echo a("ff3?newlang=nl","NL").br();
echo a("ff3?newlang=en","EN").br();
echo a("ff3?newlang=de","DE").br();
echo a("ff3?newlang=fr","FR").br();
echo a("ff3?newlang=es","ES").br();
?>
_____________
1170546628
Array
(
[language] => nl
[__utma] => 123799051.2061183218.1164095489.1164095489.1164095489.1
[__utmz] =>
123799051.1164095489.1.1.utmccn=(direct)|utmcsr=(direct)|utm cmd=(none)
)
NL
EN
DE
FR
ES
kees [ So, 04 Februar 2007 00:54 ] [ ID #1618314 ]

Re: cookies... IE7 won't set them

Seems to me, after some more research, that I must use:

setcookie("language","$newlang",time()+52*604800,"/start/",. mysite.com,0);
instead of
setcookie("language","$newlang",time()+52*604800,"/start/",w ww.mysite.com);

Any additions welcome!
Kees
____________

"Kees" <news2 [at] poi66.com> wrote in message
news:45c520cc$0$55385$dbd4b001 [at] news.wanadoo.nl...
>I got this code (snippet of my site). I expect cookies to be set. But no.
>Sometimes (!) it works, but them retsrt IE7 and... again no! Any ideas? I'm
>pretty sick of it. It just sticks to value 'nl'.

[...]
kees [ So, 04 Februar 2007 01:15 ] [ ID #1618315 ]

Re: cookies... IE7 won't set them

"Kees" <news2 [at] poi66.com> schrieb im Newsbeitrag
news:45c525b2$0$52539$dbd4b001 [at] news.wanadoo.nl...
> Seems to me, after some more research, that I must use:
>
> setcookie("language","$newlang",time()+52*604800,"/start/",. mysite.com,0);
> instead of
> setcookie("language","$newlang",time()+52*604800,"/start/",w ww.mysite.com);

uhm... www.mysite.com without qoutes??
Hans-Peter Sauer [ Do, 15 Februar 2007 15:59 ] [ ID #1630351 ]
PHP » alt.php » cookies... IE7 won't set them

Vorheriges Thema: cookies does not work under win xp + ie
Nächstes Thema: css and explorer