How will you log visitor’s login name in asp based website?
If you have disabled Anonymous right to use, then you’d be able to recover the value from:
[End users must be using IE to maintain NT Challenge/Response or Windows Authentication.] Netscape support is also possible, can access these variables by enabling Basic Authentication and Windows Authentication. This type of authentication is a little insecure, as the password is sent in plain text (with Windows Authentication, IE encrypts the password as it is being sent across).
If Anonymous access is enabled, then there is another possibility, but IP should not be provided by DHCP. If end users are with static IP addresses, one can store their usernames in a table and find against their IP:
If either of above is not possible, then option to use log in credentials (even only once, then storing a cookie).
If you have disabled Anonymous right to use, then you’d be able to recover the value from:
<%
Response.Write Request.ServerVariables("LOGON_USER")
' or
Response.Write Request.ServerVariables("AUTH_USER")
%>
Response.Write Request.ServerVariables("LOGON_USER")
' or
Response.Write Request.ServerVariables("AUTH_USER")
%>
If Anonymous access is enabled, then there is another possibility, but IP should not be provided by DHCP. If end users are with static IP addresses, one can store their usernames in a table and find against their IP:
<%
Response.Write Request.ServerVariables("REMOTE_ADDR")
%>
Response.Write Request.ServerVariables("REMOTE_ADDR")
%>
Comment