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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote_User

Status
Not open for further replies.
Apr 27, 1999
705
US

Hi,

I'd like to determine who is submitting a request from an ASP page by their NT ID which I can get from
.servervariables("Remote_User"). However, I have to turn on NT authentication and have people login which I don't want to do.

Allow anonymous_user gives them access to the web site, but then "Remote_User" returns blank. Any ideas or help would be greatly appreciated.

fengshui_1998
 
Try AUTH_USER and LOGON_USER. I hear they're unpredictable, but they are valid properties of the Request.ServerVariables collection.

ToddWW
 


ToddWW,

Been there, done that, same old story. Thanks. It's not looking good.

fengshui_1998
 
If you do figure it out or you use the Request.ServerVariables method anywhere in your application, keep this in mind.

With the Request.ServerVariables method, the server does not automatically parse just the item you request. It initializes ALL of the items in the collection when the first request on the page is made. This can be slow and taxing on the server. Subsequent requests on the same page are just as fast as any other ASP collection but the first request is fairly expensive. Therefore, try to stay away from using this method on every page or multiple pages. It's much more efficient to use this once, say at the login page, and store the value(s) to a Session variable when possible.

ToddWW
 


Thanks ToddWW,

That's what I been doing but can't seem to get it to return a string unless NT Authentication is checked.


Cheers! or in this case :(

fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top