MaximusMeridus
asked on
Request Network Computer Name
Hi all,
I have an intranet asp web page on windows 2000 network.
I would like to have the computer name or user viewing this page recorded in the database, however I cannot get it to collect this information on what I have found.
The requests I use are:
<%=Request.ServerVariables ("REMOTE_H OST")%> /which gives me the IP address
<%=Request.ServerVariables ("LOGON_US ER")%> /doesn't give me anything.
What instruction can I use to view the user or computer name?
Many thanks
MM
I have an intranet asp web page on windows 2000 network.
I would like to have the computer name or user viewing this page recorded in the database, however I cannot get it to collect this information on what I have found.
The requests I use are:
<%=Request.ServerVariables
<%=Request.ServerVariables
What instruction can I use to view the user or computer name?
Many thanks
MM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you remove anonymous access, and use basic autthentication and integrated win auth you will get around this without the internal users have to log in to the IIS.
Its all set up in the node properties->Directory security->edit in IIS.
Its all set up in the node properties->Directory security->edit in IIS.
Why the C?
ASKER
Mistake sorry..thanks...PS How do I show only the user and not the domain in my asp page?
Youll have to extract the name with something like:
<%
MyVar = Request.serverVariable("Lo gon_User")
MyArray = Split(MyVar,"\")
%>
Then <%=(MyArray(1))%> will give you the username...
<%
MyVar = Request.serverVariable("Lo
MyArray = Split(MyVar,"\")
%>
Then <%=(MyArray(1))%> will give you the username...
and <%=(MyArray(0))%> gives you the domain...
ASKER
Perfect!!
Administrator Please upgrade this to :Excellent
Thanks Matt!
Administrator Please upgrade this to :Excellent
Thanks Matt!
Glad i could help...
Hello, MaximusMeridus
The grade has been changed as requested.
RomMod
Community Support Moderator
The grade has been changed as requested.
RomMod
Community Support Moderator
ASKER