if (empty($_GET['check'])) {
header("Location:".$_SERVER['PHP_SELF']."?check=1");
setcookie("name", "liuyiwei");
} else {
if (isset($_COOKIE['name']) and $_COOKIE['name'] == "liuyiwei") {
echo "Cookie of the client is enabled!";
} else {
echo "Cookie of the client is disabled!";
}
}
?>
阅读(918) | 评论(0) | 转发(0) |