开发者

PHP cookie impossible to read issue

开发者 https://www.devze.com 2023-03-11 06:21 出处:网络
My PHP is unable to read a cookie like 开发者_Python百科this: 1010081-COP-9-20-20110606172032 echo $_COOKIE[\"SubmCookie\"];

My PHP is unable to read a cookie like 开发者_Python百科this:

1010081-COP-9-20-20110606172032

echo $_COOKIE["SubmCookie"];

It just returns empty...

How is that possible?

This is the way how I set the Cookie:

setcookie("SubmCookie",$refNumb, time()+3600*24);


Try:

setcookie("SubmCookie",$refNumb, time()+3600*24,'/');
0

精彩评论

暂无评论...
验证码 换一张
取 消