tags:

views:

39

answers:

1

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
wow thank you i was leaving a comma into the bracket, that's why it wasn't working
kakkalo