G
Gery D. Dorazio
I am trying to build an HttpModule that does a simple URL remap otherwise
know as a server side redirect. So in the module event handler
Application_BeginRequest the following code exists:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication app = (HttpApplication)source;
HttpContext context = app.Context;
// remap function returns the actual Url
String szRemappedUrl = GetRemappedURL(context);
context.RewritePath(szRemappedUrl);
}
Here are my questions:
When the redirect occurs what happens to the page cookies? Are they still
valid?
What are the pitfalls with this type of server side redirecting? Is there
any type of information that gets lost or out of sync that has to be
accounted for such as the headers, session state, etc.?
Any info URLs appreciated.
Thanks,
Gery
--
Gery D. Dorazio
Development Engineer
EnQue Corporation
1334 Queens Road
Charlotte, NC 28207
(704) 377-3327
know as a server side redirect. So in the module event handler
Application_BeginRequest the following code exists:
private void Application_BeginRequest(Object source, EventArgs e)
{
HttpApplication app = (HttpApplication)source;
HttpContext context = app.Context;
// remap function returns the actual Url
String szRemappedUrl = GetRemappedURL(context);
context.RewritePath(szRemappedUrl);
}
Here are my questions:
When the redirect occurs what happens to the page cookies? Are they still
valid?
What are the pitfalls with this type of server side redirecting? Is there
any type of information that gets lost or out of sync that has to be
accounted for such as the headers, session state, etc.?
Any info URLs appreciated.
Thanks,
Gery
--
Gery D. Dorazio
Development Engineer
EnQue Corporation
1334 Queens Road
Charlotte, NC 28207
(704) 377-3327