codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Code to read client`s NT Username on an Intranet  Alan Parker at 05:39 on Thursday, October 23, 2003
 

Hi,

I need to get the NT Username of a client when they open an ASP page on the sever. Is this possible, and if so how?

Alan Parker

  Re: Code to read client`s NT Username on an Intranet  Jeff Anderson at 12:53 on Thursday, October 23, 2003
 

You may be able to access it through:

Request.ServerVariables("REMOTE_USER")


Also of interest may be:


<%Set objNet = CreateObject("WScript.NetWork")
Response.write objNet.UserName%>


If you run this from the server, it will of course return the IUSR_SERVERNAME account. What I have done in the past with this kind of thing is run a little VBscript application on the client machine using the above code - and, for example, matching it with the IP address, which then gets stored in a database. It depends what you want to do really.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007