In HS2, when I execute Response.Write Request.ServerVariables("AUTH_USER") I get the user_NAME of the person logged into the web server, not the user rights (such as guest).
Yet I see people suggesting the following logic:
If lcase(Request.ServerVariables("AUTH_USER")) = "guest" Then Response.Redirect("/hs/unauthorized.asp")
I do see how I could use ServerVariables("AUTH_USER") in conjunction with hs.GetUsers to provide guests the unauthorized.asp. but the code above does not work. Did the behavior change with HS2?
In summary, ServerVariables("AUTH_USER") returns the same string as hs.WebLoggedinUser().... both return the username.
Thanks, rich
Yet I see people suggesting the following logic:
If lcase(Request.ServerVariables("AUTH_USER")) = "guest" Then Response.Redirect("/hs/unauthorized.asp")
I do see how I could use ServerVariables("AUTH_USER") in conjunction with hs.GetUsers to provide guests the unauthorized.asp. but the code above does not work. Did the behavior change with HS2?
In summary, ServerVariables("AUTH_USER") returns the same string as hs.WebLoggedinUser().... both return the username.
Thanks, rich
Comment