|
-
Aug 15th, 2003, 09:52 AM
#1
Thread Starter
Lively Member
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
-
Aug 15th, 2003, 10:26 AM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|