Certified PHP Developer Learning Resources Accessing Cookies

Accessing Cookies
 


/* Use Cookies */
ECHO $TestCookie;
ECHO $_COOKIE["TestCookie"];
?>
 
/* Set cookie array */
SETCOOKIE ("cookie[three]", "cookiethree");
SETCOOKIE ("cookie[two]", "cookietwo");
SETCOOKIE ("cookie[one]", "cookieone");
     IF (ISSET ($cookie)) {
          WHILE (LIST ($name, $value) = EACH ($cookie)) {
          ECHO "$name == $value
\n";
     }
}
?>
 

 For Support