On Oct 27, 5:16 am, "Anthony Jones" <A....RemoveThis@yadayadayada.com> wrote:
> <mbasi....RemoveThis@gmail.com> wrote in message
>
> news:1193473195.037125.306380@o38g2000hse.googlegroups.com...
>
> > I'm trying to create a custom server variable. Is there a way to do
> > this? Maybe as an ISAPI filter?
>
> > I know there are MUCH better/easier ways to store session data ...
> > However, I'm dealing with a legacy application that relies on this.
>
> Yes an ISAPI filter will allow you to add new headers into the context which
> can then be seen as Server variables.
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>
>
> - Hide quoted text -
>
> - Show quoted text -
To add further details:
An ISAPI Filter can add new request headers. As well as manipulate/
remove "structured" request and response headers. The request headers
can be retrieved by an ASP.Net application using a certain syntax with
Request.ServerVariable.
And as such, there are limits to what header names can be retrieved.
See this blog entry for the full explanation.
http://blogs.msdn.com/david.wang/archive/2006/04/20/HOWTO-Retrieve-Req...t-Heade
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
>> Stay informed about: Custom server variable