How to collect the UserID, Client Machine Name, IP address info?

K

Kam

In my asp server page, I would like to collect the USERID, Client Machine
Name, IP Address information and passing it back to the server for validation
control.

How can I achieve it in Jscript?
 
A

Aaron Bertrand [SQL Server MVP]

You only have access to what is offered in the servervariables collection.

Do yourself a favor and run this script:

<%
For Each x In Request.ServerVariables
Response.Write "<hr>" & x & "<br>" & Request.ServerVariables(x)
Next
%>
 
K

Kam

all the variables are empty.
I think you want me to use LOGON_USER.
but none of the server variable are non empty

pls help
 
A

Aaron Bertrand [SQL Server MVP]

all the variables are empty.

Every single ServerVariable value is empty? I find this very hard to
believe.
I think you want me to use LOGON_USER.

If you need LOGON_USER, you need to disable anonymous access on the web site
and require windows authentication.

A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top