Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Logging User Info and Timestamp

Guys,

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?

Thanks,
Steve

0
stever80
Asked:
stever80
  • 4
  • 2
1 Solution
 
knightEknightCommented:
Your web server probably already does this for you.  What web server are you using?
0
 
stever80Author Commented:
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?

0
 
knightEknightCommented:
look in a folder called C:\WINNT\system32\LogFiles\W3SVC1
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
knightEknightCommented:
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.
0
 
knightEknightCommented:
... then click on Extended Properties and you can select User Name as a field to be recorded in the log.
0
 
infexCommented:
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, ...
0
 
stever80Author Commented:
Easy enough.  Thanks so much for your help.  GLad it was built into IIS, makes my life a hell of a lot easier :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now