int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])
in this setcookie function, can I use a
variable as string name?
say, I have code
$ip = getenv ("REMOTE_ADDR");
setcookie("$ip","10000",time()+3000000);
Seems the cookie was not set, because when
I was trying to get the cookie using
$value=$_COOKIE["ip"."$ip"];
It told me that the cookie was not set.
David