PHP cookie impossible to read

My PHP cannot read the cookie, for example:

1010081-COP-9-20-20110606172032

echo $_COOKIE["SubmCookie"];

It just returns empty ...

How is this possible?

This is how I set a cookie:

setcookie("SubmCookie",$refNumb, time()+3600*24);
+3
source share
1 answer

Try:

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

All Articles