??
I don't quiet get it.
If I write your codes, and run it in my browser, it writes the line
echo 'Cookie "' . $name . '" set to: ' . $value;
So it seems like it's working. And if and then run the site again, it writes:
testcookie
So it seems like it is all working fine, but still I can't find the cookie anywhere.
I have tried searching for the word string "testcookie" but it is no way on my computer.
Why can't I find it. ?
So maybe my first codes worked as well. I did try the echo $_COOKIE[$name]; command then.
This line
if( isset( $_COOKIE[$name] ) )
Does it check to see if there are any cookies with that name. ?
And your codes then sets a cookie if there aren't one, and get it if there are one.
Am I right ??