|
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
|
|
|
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.
|
|
|
|
|
|
|
// |