Primoz Bradac wrote:
Quote:
I have a .ASP page I'd like to make accessible only to selected users
who are logged on Windows workstations. The .ASP page is running under
IIS on a Windows 2003 Server (intranet).
>
Is there a way I could get to the username who requested the ASP page
(in the script of the .ASP page)?
>
|
Of course there is. Use IIS Manager to turn off Anonymous Access and turn on
Integrated Security (this is done on the Directory Security tab of the
website Property pages, using the Edit button in the Anonymous Access and
authentication control section).
Once y9ou have done this, the user name will be in the LOGON_USER
servervariable:
Response.Write Request.ServerVariables("LOGON_USER")
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"