This sets a cookie, and incements it each time you access the page. But there are problems with this counter. 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."; ?>