Cookies
|
|
|
|
<? if ($MODE!=="test") {
SetCookie("COOKIE", "VALUE");
Header("Location: ".$SCRIPT_NAME."?MODE=test");
exit;
} else if ($COOKIE=="VALUE") {
echo "You've got cookies!";
} else {
echo "Turn on cookies, Mr. Paranoid.";
} ?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|