<% ' In this sample, accessing the page will result in the browser popping up ' its authentication dialog requesting a user name and password. Entering a ' valid user name and password will display the user name and the type of ' authentication used to validate the user. If Request.ServerVariables("LOGON_USER") = "" Then Response.Status = "401 access denied" End If %> Authentication Sample

Authentication Sample

You logged in as user: <% = Request.ServerVariables("LOGON_USER") %>

You were authenticated using: <% = Request.ServerVariables("AUTH_TYPE") %> authentication