Link to home
Start Free TrialLog in
Avatar of MaximusMeridus
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_HOST")%>  /which gives me the IP address

<%=Request.ServerVariables("LOGON_USER")%> /doesn't give me anything.

What instruction can I use to view the user or computer name?

Many thanks

MM
ASKER CERTIFIED SOLUTION
Avatar of mattisflones
mattisflones
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MaximusMeridus
MaximusMeridus

ASKER

could you explain in more detail??
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.
Why the C?
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("Logon_User")
MyArray = Split(MyVar,"\")
%>

Then <%=(MyArray(1))%> will give you the username...
and <%=(MyArray(0))%> gives you the domain...
Perfect!!

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