tags:

views:

87

answers:

1

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?

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
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
Name one, and how hold is it? Is it using isapi? If so, then it's a bit old.
John Saunders
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