Custom server variable
am 27.10.2007 10:19:55 von mbasil77
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.
Thanks in advance.
mb
Re: Custom server variable
am 27.10.2007 14:16:35 von Anthony Jones
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
>
Re: Custom server variable
am 28.10.2007 08:18:20 von David Wang
On Oct 27, 5:16 am, "Anthony Jones" wrote:
> 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-Re trieve-Request-Headers-using-ISAPI-ASP-and-ASP-Net.aspx
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//