Results 1 to 2 of 2

Thread: ServerVariables Collection

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Location
    Reading
    Posts
    70

    ServerVariables Collection

    My application uses the following line of code

    Request.Servervariables("LOGON_USER") to determine who is raising an event and update the database accordingly.

    Problem is, that it only seems to work sometime, sometimes I get an empty string back, but it's still me logged on etc. Anybody got any ideas?


    Cheers

    AuldNick

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Add this on the top or your page:
    Code:
    <%If Request.ServerVariables("LOGON_USER") = "" Then
    	Response.Status = "401 Access Denied"
    	Response.End		
    End If%>
    It will force IIS to refresh login information

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width