I'm trying to set a cookie
with this lines
if(!isset($_COOKIE["testAgain"]))
setcookie("testAgain", mt_rand());
The problem is that, even if I can see in the response headers
the following lines:
Set-Cookie: testAgain=15146202
When I change the page, the cookie
is not in $_COOKIE
and it tries to set it again.
Why is this happening?