Hi Friends,
I am facing a strange issue in one of my ASP programs. There are two versions of code. One which is working and one which is not.
This is the working code:
If Request.ServerVariables("AUTH_USER") = "" Then
Response.Status = "401 access denied"
response.write Response.Status
Response.End
End If
strUserID = Request.ServerVariables("AUTH_USER")
This returns me the user id which I can write.
Now the "Not working code"
strUserID = Request.ServerVariables("AUTH_USER")
If IsEmpty(strUserID) then
strUserID = Request.QueryString("UserID")
End If
Now , I am not able to understand why the first snippet of code is working and not the second one. The observation is whenver I am using the "If Request.ServerVariables("AUTH_USER") = "" Then" line in the code, I start getting Auth_User values. Else it simply does not return anything. Can someone enlighten me on this.
Thanks a lot.
Rovils
I am facing a strange issue in one of my ASP programs. There are two versions of code. One which is working and one which is not.
This is the working code:
If Request.ServerVariables("AUTH_USER") = "" Then
Response.Status = "401 access denied"
response.write Response.Status
Response.End
End If
strUserID = Request.ServerVariables("AUTH_USER")
This returns me the user id which I can write.
Now the "Not working code"
strUserID = Request.ServerVariables("AUTH_USER")
If IsEmpty(strUserID) then
strUserID = Request.QueryString("UserID")
End If
Now , I am not able to understand why the first snippet of code is working and not the second one. The observation is whenver I am using the "If Request.ServerVariables("AUTH_USER") = "" Then" line in the code, I start getting Auth_User values. Else it simply does not return anything. Can someone enlighten me on this.
Thanks a lot.
Rovils