|
Posted by Kees on 02/03/07 23:54
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/",www.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)|utmcmd=(none)
)
NL
EN
DE
FR
ES
Navigation:
[Reply to this message]
|