HttpModule for virtual page server side redirects and cookies

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top