http://www.perlmonks.org?node_id=19446


in reply to CGI and Server-load

Would it be any easier on the server if you used ASP?

I think all have to do is to include a tiny amount of ASP (or PHP, or PERL) code in each page, which would send a cookie to every user. If, when the script ran, the cookie was already set, then the visit was not unique. If it was not already set, then the visit was unique and you'd increment the counter in a database or elsewhere.

Replies are listed 'Best First'.
RE: Re: CGI and Server-load
by nuance (Hermit) on Jun 22, 2000 at 19:33 UTC

    Lot's of people don't accept gratuitous cookies from random sites. I personally click ok to every cookie that gets set on my system. If people are rejecting cookies then this isn't going to work.

    nuance pet hate of the day: I really hate sites that try to set cookies every time you reference anything (images etc.). You have to click no about 30 times every time you change a page on their site. I always aviod sites like this.

    Nuance