You guys have been very helpful to me with your replies.
What I did to handle the GET /favicon.ico was just to check for the character 'f' after the first '/', and when I found it, just DEcrement my page counter by one, so when it got incremented later, it ended up unchanged. Just a few extra lines of code.
Page counter works well now with all five major browsers (IE, FF, Chrome, Safari, Opera).
Thanks again !
BobW
BobW:
I should have seen that.
It was the "GET /favicon.ico HTTP/1.1" that I was missing.
Thanks.
I'll be good to go now !BobW
SurferTim:
It is the web browser request for favicon.ico that adds to the count. Chrome requests it every reload. Firefox and IE don't.Check for the request for "GET /favicon.ico HTTP/1.1" and ignore that count.