Get System user name at WINNT and WIN2000

J

jay.chan

I am writing a web application to get System user name. By reading the
previous post, it seems that this method works

<%@ Language=VBScript %>
<%
Dim user, pword
user = Request.ServerVariables("AUTH_USER")
Response.Write user
%>

but I want to ask is it only work at WINNT? How about WIN2000 Server, I
can get nothing when use this statement on WIN2000 Server.

Besides,
If I want to use Jsp, is there any methods to achieve the same thing?

Thank you!
 
A

AlanM

I am writing a web application to get System user name. By reading the
previous post, it seems that this method works

<%@ Language=VBScript %>
<%
Dim user, pword
user = Request.ServerVariables("AUTH_USER")
Response.Write user
%>

but I want to ask is it only work at WINNT? How about WIN2000 Server, I
can get nothing when use this statement on WIN2000 Server.


yes it should work on any sefver that runs IIS
 
R

Ray Costanzo [MVP]

You have to turn off anonymous access to the site or directory or page and
authenticate your users before you can get the auth_user variable to be
populated with a value.

Ray at work
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top