Unique views count

Hi,

I’m sorting images on my web page based on their views. When is image view accessed it view count is inceremnted by 1 and stored. But if someone wants their image to be the most popular one they simply just refresh the page X times and it increments X to the particular image.

Is there a way I can forbid this behaviour i.e. unique users or some other form of solution?

Keep track of session id? Cookies is longer but they can be deleted/rejected.

Nicklas Karlsson:
Keep track of session id? Cookies is longer but they can be deleted/rejected.

Can you elaborate more or show me some pseudo code? I’m not sure I know how it works…