so is there any way to do it. i want to put a string as the cookie name instead of a definite cookie name?
+1
A:
The cookie name is always a string. Do you mean if you can substitute it with a variable? Yes, as with any other string.
setcookie($someString, ...);
$_COOKIE[$someString];
deceze
2009-07-10 01:02:27
wow thank you i was leaving a comma into the bracket, that's why it wasn't working
kakkalo
2009-07-10 01:07:34