jennypretty
03-16-2009, 03:30 PM
Hello,
I tried to capture three users who logged in the windows to give access to one specific ASP page. However, it didn't do anything. If I set for one user only, then it worked. But if I set for two users, it didn't work.
I like to give access to only these three users as below.
Here is my code:
<% Dim strLogon, strUser1, strUser2, strUser3
strLogon = Request.ServerVariables("Window_User")
strUser1 = user1
strUser2 = user2
strUser3 = user3
If strLogon <> user1 OR strLogon <> user2 OR strLogon <> user3 Then
Response.Redirect "error.asp"
End If
%>
If I do just one user, it worked. For two or three users, it didn't do it.
Can anyone please advice? What did i do wrong and how to make it work?
Thanks very much!
I tried to capture three users who logged in the windows to give access to one specific ASP page. However, it didn't do anything. If I set for one user only, then it worked. But if I set for two users, it didn't work.
I like to give access to only these three users as below.
Here is my code:
<% Dim strLogon, strUser1, strUser2, strUser3
strLogon = Request.ServerVariables("Window_User")
strUser1 = user1
strUser2 = user2
strUser3 = user3
If strLogon <> user1 OR strLogon <> user2 OR strLogon <> user3 Then
Response.Redirect "error.asp"
End If
%>
If I do just one user, it worked. For two or three users, it didn't do it.
Can anyone please advice? What did i do wrong and how to make it work?
Thanks very much!