Im rather new to php, and Im coding myself a CMS. I ran into a small problem with the item hit counter (shows how many times a video has been viewed). I simply have a function add_hit($type, $id) which adds 1 to the "hits" field for that specific item ID. SImple... the problem is that it executes upon when a user comments on a video, or refreshes the pages. How can I only count the initial page load as a hit, and ignore the refreshes, etc? It has to workt he same way for logged in and logged out users.