This sets a cookie, and incements it each time you access the page. But there are problems with this counter.
-
You might have cookies turned off.
-
Your cookie might expire. Then you loose count.
But, it does work sometimes, and keeps all state off the server.
\n");
if (isset($_COOKIE['count4']))
echo "count4 is also set.";
else
echo "count4 is not available to me.";
?>