What methods are available to me if I want to add an IIS Server Variable to Request.ServerVariables? I'd like to add a value to it before an application starts to pass a variable to that web application. Can a HttpHandler manage it?
views:
87answers:
1
A:
Request.ServerVariables
is really old stuff for compatibility with Classic ASP. You should find another way to do this. What are you trying to accomplish?
John Saunders
2009-07-30 17:21:46
Are you sure about that? A lot of Single Sign On solutions work by authenticating a user and then adding the authentication information to the IIS Server Variables.
quillbreaker
2009-07-30 17:50:56
Name one, and how hold is it? Is it using isapi? If so, then it's a bit old.
John Saunders
2009-07-30 18:14:45
And you didn't say what you're trying to accomplish, so I can't tell you that an `HttpModule` will likely accomplish it. You didn't even say what version of IIS you're running, so I can't tell you that the `HttpModule` will work for all types of content if you're using IIS7.
John Saunders
2009-07-30 18:16:04