Certify and Increase Opportunity.
Be
Govt. Certified PHP-Developer
Accessing Cookies

/* Use Cookies */
<?PHP
ECHO $TestCookie;
ECHO $_COOKIE[“TestCookie”];
?>

/* Set cookie array */
<?PHP
SETCOOKIE (“cookie[three]”, “cookiethree”);
SETCOOKIE (“cookie[two]”, “cookietwo”);
SETCOOKIE (“cookie[one]”, “cookieone”);
IF (ISSET ($cookie)) {
WHILE (LIST ($name, $value) = EACH ($cookie)) {
ECHO “$name == $value<br>\n”;
}
}
?>