Visit counter for anonymous visits? I would like to keep track of the number of visits for each anonymous user. I want to be able to show special messages, for example when they visit the site the 10th time.

Incrementing a cookie variable will just be fine in this case. How do I find out when a new session has started?
This would be difficult I believe, because every anonymous visitor is essentially treated as the same, as one account.