home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / Logon_JScript.asp < prev    next >
Text File  |  1997-10-25  |  1KB  |  45 lines

  1. <%@ LANGUAGE = JScript  %>
  2.  
  3. <% 
  4.     // Force Authentication if the LOGON_USER Server
  5.     // Variable is blank by sending the Response.Status
  6.     // of 401 Access Denied
  7.     
  8.     // Finish the Page by issuing a Response.End so that a user
  9.     // cannot Cancel through the dialog Box
  10.  
  11.     if (Request.ServerVariables("LOGON_USER") == "") 
  12.     {
  13.         Response.Status = "401 access denied";
  14.         Response.End();
  15.     }
  16. %>
  17.  
  18. <HTML>
  19.     <HEAD>
  20.         <TITLE>Login Screens</TITLE>
  21.     </HEAD>
  22.  
  23.     <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  24.  
  25.  
  26.         <!-- Display Header -->
  27.  
  28.         <font size="4" face="Arial, Helvetica">
  29.         <b>Login Screens</b></font><br>
  30.       
  31.         <hr size="1" color="#000000">
  32.  
  33.     
  34.         <!-- Display LOGON_USER Server Variable -->
  35.  
  36.         You logged in as user:<B>  <% = Request.ServerVariables("LOGON_USER") %></B>
  37.  
  38.  
  39.         <!-- Display AUTH_TYPE Server Variable -->
  40.  
  41.         <p>You were authenticated using:<B>  <% = Request.ServerVariables("AUTH_TYPE") %></B> authentication
  42.  
  43.     </BODY>
  44. </HTML>
  45.