Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 5th, 2003, 03:39 AM
Authorized User
 
Join Date: Jul 2003
Location: Athens, , Greece.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default logging users

Hello,

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

Reply With Quote
  #2 (permalink)  
Old December 5th, 2003, 08:38 AM
Authorized User
 
Join Date: Dec 2003
Location: Nairobi, N/A, Kenya.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO
Default

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.
Reply With Quote
  #3 (permalink)  
Old December 5th, 2003, 02:59 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #4 (permalink)  
Old December 8th, 2003, 01:52 AM
Authorized User
 
Join Date: Dec 2003
Location: Nairobi, N/A, Kenya.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to MAMBONO
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:50 PM.


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