By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

What Session Data to Capture

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
--------------------
Content-Class: urn:content-classes:message
From: "Hugh McLaughlin" <hu**@kmcnetwork.com>
Sender: "Hugh McLaughlin" <hu**@kmcnetwork.com>
Subject: What Session Data to Capture
Date: Wed, 9 Jul 2003 21:05:33 -0700
Lines: 9
Message-ID: <00****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNGmIJEcHpSklhyTNKRxrNW0YCyzg==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:100724
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

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.


Jul 19 '05 #2

P: n/a
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/de...us/cpref/html/
frlrfsystemwebhttprequestclassservervariablestopic .asp
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebhttprequestclassuserhostaddresstopic .asp
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebhttprequestclassuserhostnametopic.as p

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.

--------------------
Content-Class: urn:content-classes:message
From: "Hugh McLaughlin" <hu**@kmcnetwork.com>
Sender: "Hugh McLaughlin" <hu**@kmcnetwork.com>
References: <00****************************@phx.gbl> <QN**************@cpmsftngxa06.phx.gbl>Subject: RE: What Session Data to Capture
Date: Fri, 11 Jul 2003 05:46:20 -0700
Lines: 64
Message-ID: <08****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNHqm2mmnOCaYTVRQK1xbadHBUA4A==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:100880
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.general

So, what you are saying is that the Remote_Host and
UserHostName should return the same IP Address. The
UserAddressName will return the DNS name if available.
Is this correct?
-----Original Message-----
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.
--------------------
Content-Class: urn:content-classes:message
From: "Hugh McLaughlin" <hu**@kmcnetwork.com>
Sender: "Hugh McLaughlin" <hu**@kmcnetwork.com>
Subject: What Session Data to Capture
Date: Wed, 9 Jul 2003 21:05:33 -0700
Lines: 9
Message-ID: <00****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNGmIJEcHpSklhyTNKRxrNW0YCyzg==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.general:100724NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

Hello everyone and thanks for your help in advance. Iamworking 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 thesamething and what exactly the UserHostName signifies. I
have checked many resources, but can't seem to getclearon this. Any help would be greatly appreciated.Thanks.


.


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.