Ask a Question related to ASP.NET Security, Design and Development.
-
Corey Masson #1
Request.ServerVariables missing?
Hello to all,
Here is my situation.
I have an old .ASP application that is doing the
following:
Uses Request.ServerVariables("Auth_User") to get the
domain name\username from the web server.
It then takes this value and validates it from a User
tables primary key field in MS SQL
Problem, I am porting over this app to .Net and I have to
keep this basic functionality.
When I try to get values from Request.ServerVariables in
C# i get nothing.
When i do the following logic, USER_AUTH does not even
appear in my collection:
int loop1, loop2;
NameValueCollection coll;
// Load Header collection into
NameValueCollection object.
coll=Request.Headers;
// Put the names of all keys into
a string array.
String[] arr1 = coll.AllKeys;
for (loop1 = 0;
loop1<arr1.Length; loop1++)
{
Response.Write("Key: " +
arr1[loop1] + "<br>");
// Get all values under
this key.
String[]
arr2=coll.GetValues(arr1[loop1]);
for (loop2 = 0;
loop2<arr2.Length; loop2++)
{
Response.Write
("Value " + loop2 + ": " + arr2[loop2] + "<br>");
}
}
What am I doing wrong?
Corey
Corey Masson Guest
-
Request.ServerVariables(AUTH_USER)
I've noticed on my company's intranet that the Request.ServerVariables(AUTH_USER) command will not return a value unless the requesting web page's... -
Workaround needed for: Request.ServerVariables("HTTP_Referer")
Hi. Having trouble with Request.ServerVariables("HTTP_Referer") due to firewalls etc. Does anyone have a neat workaround other than passing and... -
Display Request.ServerVariables in .CFM
Can someone show me how to display the values of Request.ServerVariables in .CFM file? Many Thanks -
Request.ServerVariables Question
i would like to capture the server variables from a remote server in our org. is this possible ?? -
Automatic Login - Forms Authentication - Request.ServerVariables["LOGON_USER"]
Hi there, I'm busy building a site that authenticates users from a database but would like Windows authenticated users to bypass the logon screen...



Reply With Quote

