Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 5th, 2003, 03:39 AM
Authorized User
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default logging users


Does anyone know if you can log user entries to a site through IIS?? Im using Session variables for each user, if that helps..I need to know when a new user enters my site..If anyone has seen Apache Tomcat's log, thats exactly what Im looking for

Thanks in advance
Kostas Lagos

Old December 5th, 2003, 08:38 AM
Authorized User
Join Date: Dec 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO

IIS keeps logs of visits. You just need to set it to do that. However it logs these using IP addresses unless you have a login method. To activate this, open IIS and right click on Default Website. On the main page after opening that you will see an option called Enable Logging, you can edit the properties of how to log that. I personally use the W3c Extended log format.
Old December 5th, 2003, 02:59 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Take a look at this article: http://imar.spaanjaars.com/QuickDocID.aspx?QUICKDOC=161

It shows you how to create hit counter using ASP. Whenever a new user starts a new session, a counter in Application state is incremented. You can expand this example by writing out cookie that prevents the same user from being counted twice, if required.

Two other articles (mentioned in the one above), give some ideas on how to use text files or database to store the counters.



Imar Spaanjaars
Everyone is unique, except for me.
Old December 8th, 2003, 01:52 AM
Authorized User
Join Date: Dec 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO

Some changes in the global.asa have to be done as well but it's a good way to go about it.

Similar Threads
Thread Thread Starter Forum Replies Last Post
why isn't CURL logging me in ? jjk2 Beginning PHP 1 October 5th, 2008 07:29 PM
Multiple Users logging on feets Access 6 November 14th, 2007 11:11 AM
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM
Logging users in access. sampow Access 6 December 16th, 2003 07:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.