<?php 
    // set a cookie called count. cookie expires after 600 seconds.
    $count = 0;
    setcookie("count", $count, time()+600);
?>

<html>
<head>
   <title>Cookies</title>
</head>

<body>
<h1>Cookie 'count' created with value <?=$count?></h1>

<ul>
<li>Click here to <a href="increment-count.php">increment count</a></li>
<li>Click here to <a href="delcookie.php">destroy the count cookie</a></li>
</ul>

</body>
</html>