Logging User Info and Timestamp

Posted on 2005-03-11
Medium Priority
Last Modified: 2010-04-09

Just a quick question and I am unsure if this can even be done in HTML or rather it should be done in asp or java.  Basically once someone accesses a website I created, I would like a log to be created which states the time they accessed it and what their username is.  Obviously this is an internal website so I assume this should not be too difficult to obtain.  Can someone help me with this?


Question by:stever80
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 33

Expert Comment

ID: 13518779
Your web server probably already does this for you.  What web server are you using?

Author Comment

ID: 13518798
Using a windows 2000 web server with IIS 5.  How would I be able to obtain this info and place it into a log or is it already in a log and if so where is the default place it goes?

LVL 33

Accepted Solution

knightEknight earned 500 total points
ID: 13518817
look in a folder called C:\WINNT\system32\LogFiles\W3SVC1
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

LVL 33

Expert Comment

ID: 13518832
In your IIS Management Console, right-click on "default web site" and choose the "Web Site" tab.  At the bottom you will see a button for the log-file properties.
LVL 33

Expert Comment

ID: 13518846
... then click on Extended Properties and you can select User Name as a field to be recorded in the log.

Expert Comment

ID: 13518967
If the users are in the same domain, the solution of knightEknight will give you what you need. If however the users are not in the same domain, you can in the logfiles check for the IP number of the machine from where the request originated.

If this is too akward, you need a server side script such as ASP, JSP, PHP, Java, ...

Author Comment

ID: 13537915
Easy enough.  Thanks so much for your help.  GLad it was built into IIS, makes my life a hell of a lot easier :)

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question