"; if ( $_COOKIE["testcookie"] ) { echo "set" ; echo "
Two ways of printing the cookie:
"; echo $_COOKIE["testcookie"]; echo "" ; echo $HTTP_COOKIE_VARS["testcookie"] , "
Printing all the cookies:
"; print_r($_COOKIE); echo "
un-set the cookie
re-set the cookie