Hi Tony,
In most cases you do not need to use the domain parameter. Try to simplify
the function call to
setcookie("auth", "1", 0, "/"); // Not this cookie has already expired
setcookie("auth", "1", time() + 3600, "/"); // Not this cookie will expire
in 1 hour
or even to
setcookie("auth", "1
Hi There,
I am a beginner PHP developer and I have a very simple, perhaps silly,
question:
I am trying to use the setcookie function in a PHP script and I seem to be
struggling with the "domain" parameter. Here is situation:
//set authorization cookie
setcookie("auth", "1", 0, "/", "y