setcookie() do not set value in chrome
hi all i am facing problem with setcookie() in chrome only. It is working
fine in firefox. this is my function where i am using cookie
function step3($voice_choice = null)
{
if (!empty($voice_choice)) {
setcookie("voice_choice", $voice_choice, time() + 2000, "/");
}
}
when I print $_COOKIE output is
Array ( [CAKEPHP] => s247c7mlagt5am6h323cm7pqj0 [voice_choice] =>
favicon.ico ).
the value of "voice_choice" is not what i set in above function.
No comments:
Post a Comment