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

J

John

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.
 
P

Patrice Scribe

AFAIK the IIS built-in log file functionnality allows to track cookies.

Lauch the IIS service manager, go on your appplication root, in properties
choose the "web site" tab. Use then the "extended properties" and make sure
the Cookie line is checked... (IIS 5 but should be likely the same for
IIS6).

Patrice
 
M

[MSFT]

Hello,

I have replied your same question in microsoft.public.dotnet.general.
Please refer to my answer in that thread.

Regards,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top