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

User Info from registry

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,

I was wondering if it is possible to capture the user login from my asp page.

I tried to use
Set n = Server.CreateObject("WScript.Network")
Response.Write n.UserName

Set n = Nothing

But since the code executes on the remote server, I get that server's user name, instead of the workstation's user name.

Please suggest a solution if there is one.

Thank you very much
 
if they're local on the network, or if they had to authenticate via windows auth to connect you can get the name from:
request.servervariables("logon_user")

[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top