What Session Data to Capture

  • Thread starter Thread starter Hugh McLaughlin
  • Start date Start date
H

Hugh McLaughlin

Hello everyone and thanks for your help in advance. I am
working on an application to track visitors to my
website. However, I am confused as to what data to
capture for the session, specifically the Remote_Host,
UserHostAddress, and UserHostname. I am unclear as to
whether the Remote_Host and UserHostAddress are the same
thing and what exactly the UserHostName signifies. I
have checked many resources, but can't seem to get clear
on this. Any help would be greatly appreciated. Thanks.
 
Hi Hugh,

Do you mean the HttpRequest Class? The class has a collection
property(ServerVariables) from which you can get the UserHostAddress and
UserHostName. t is one variable in the ServerVariables. So you may say that
UserHostAddress is the same as Remote_Host ,because it gets from the
Remote_Host. while UserHostName is the DNS name of the UserHostName.

Hope this will help you.

Regards,
Peter Huang
===========
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
 
Hi Hugh,

Do you mean that the Remote_Host and UserHostAddress will return the same
IP Address, and the UserHostName will return DNS name if available?That is
true.

Here are some links helpful.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebhttprequestclassservervariablestopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebhttprequestclassuserhostaddresstopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebhttprequestclassuserhostnametopic.asp

Peter Huang

Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
 
Back
Top