Looking for a way to add unique persistent cookie to IIS 6.0 log file

From: John (John_at_nospam.com)
Date: 03/19/04


Date: Thu, 18 Mar 2004 21:49:41 -0500

Hi.

I am looking for a way to implement the mod_usertrack function of Apache in
IIS...

If you are familiar with IIS log file, you know that it tracks several
pieces of information on every transaction/hit (GET/POST), including IP
address, date/time, and so on. I like for every visitor to my site (running
on Windows 2003 and IIS 6.0) to automatically receive a persistent unique
cookie. I would like this cookie to be logged in every row of data in the
IIS log file, along with other information.Hopefully, this will allow me to
come up with a better "unique" visitor count for my site.

I imagine this should be a very common function, but I am very new to IIS /
ASP.NET / and ISAPI and not quite sure how to begin. I was looking into
global.asax, but that seems to only be called for calls against asp files.
My site has a mix of HTML, ASP, PDF, and image files and, ideally, I would
like hits against any of them to appear with the visitor's cookie in the log
file. In other words, even if a visitor navigates directly to a PDF file,
s/he need to receive a cookie, if they do not have one, and the cookie needs
to be logged in the log file..

I hope I did not confuse things a lot.

Thanks in advance for your help.



Relevant Pages