thank you very much 🙂 accessing the value by using $_COOKIE['testcookie'] with register globals set to off, which it seems to recomend in the php.ini file does what I originally wanted the script to do, output "testvalue". I noticed a comment there that that enabeling register globals can create potential security problems. I'm not quite sure that I understand how that can happen?
Why does it create $testcookie the next time that the script is run, though not the first? Or, how does the script execute differently, under the surface, the next time around?🙂
I also tried the above example trying to access the value in the cookie by using $HTTP_COOKIE_VARS['testcookie'], would that also be an example that requires register globals to be enabled?
It's not entirely clear to me what scope a global variable is global to. Is it per session, or to the entire server?