Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Custom server variable

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Host with trailing slash  
Author Message
mbasil77

External


Since: Oct 27, 2007
Posts: 1



(Msg. 1) Posted: Sat Oct 27, 2007 1:19 am
Post subject: Custom server variable
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: Custom server variable 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 113



(Msg. 2) Posted: Sat Oct 27, 2007 8:58 am
Post subject: Re: Custom server variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<mbasil77.TakeThisOut@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
>

 >> Stay informed about: Custom server variable 
Back to top
Login to vote
David Wang

External


Since: Nov 01, 2007
Posts: 309



(Msg. 3) Posted: Sun Oct 28, 2007 12:18 am
Post subject: Re: Custom server variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
REMOTE_USER Server Variable - Using IIS 5.0. I'm working with my web admin to try to fix this, but he doesn't seem to know how to do it. My problem is that when I make a call: Request.ServerVariables("REMOTE_USER") I am not getting any value back. .. I have been able t...

Server variable can't be modified during request? - I recently had a problem of not being able to connect to the web server. I found out the issue was because of installing PHP. I've since uninstalled PHP and manually configured it from the zip file. Now everything except aspx pages are loading fine. ..

PATH_TRANSLATED / SCRIPT_NAME server variable 404 issue. - Please Help. Nobody seems to have posted a solution for this yet. System: Windows 2000 (unknown if it is Pro, Server or Advanced Server) All known service packs are installed. Symptoms: Accessing a URL from an asp.net application such as..

Session Variable Loss with IIS 6.0 Windows 2003 Server - OVERVIEW: Inexplicable random loss of session variables. No hard correlations can be seen with worker process recycling, modifications to worker process settings, or endless beating of my head against the wall. SETUP: Windows 2003 Server, IIS 6.0, P4..

Custom 404 page works on one server, not another - I have read all of the knowledge base articles on this subject, and have not found my answer yet. I have created a custom 404 page in php that helps users who ask for a missing page. I have this working on our sandbox server for our main site. I also..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]