Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem getting Logon_User first time round

Status
Not open for further replies.

furtivevole

Technical User
Jun 21, 2001
84
GB
Hi

In an intranet application (asp/VBS), I want to be able to capture various details about the user. Request.ServerVariables("Remote_addr") always returns the correct IP address, but Request.ServerVariables("Logon_User") used in the same way usually returns nothing. (When a string is returned however, it is correct.) The only way I can often get the Remote_addr is by refreshing the page, sometimes several times. (This is fairly, but not absolutely, consistent behaviour.)

Any ideas on the cause of this, or an elegant way of getting round it?

Thanks, Linnet
 
Linnet,

In a corporate network, if a user needs access to certain web pages, they are validated against their account in a domain. In my case, we are validated against our NT domain.
This is where the Request.ServerVariables("Logon_User") string comes from.

However in the case of the Internet, a user who logs in at home on his/her own machine, is not validated by any accounting system. Thus, when that user accesses an Internet web site, Request.ServerVariables("Logon_User") is blank, unless they are further required to login to a corporate network. Hope this helps.

fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top