$HTTP_COOKIE_VARS["VisitTimes"]?($VisitTimes ++):($VisitTimes = 1);
setcookie("VisitTimes",$VisitTimes,time()+31536000);
echo "Welcome ".$VisitTimes.
" Visit my homepage
n";
?>
Cookies are often used in WEB applications. The PHP tutorial cookie application example we provided above is a code commonly used in example applications