Server.Transfer in HttpModule losing Session

  • Thread starter themattconnolly
  • Start date
T

themattconnolly

I have an application built on virtual pages, where the url is
intercepted and a different page is built according to the url. In
order to also use forms authentication, I had a Server.Transfer call in
a custom HttpModule, called by AuthenticateRequest. The problem is that
now I want to access session variables that are set on the
application's start, but calling Server.Transfer inside of
AuthenticateRequest loses reference to the session. Calling
Server.Transfer inside of PreRequestHandlerExecute works (the session
has been set up), but only when a corresponding physical page exists to
force the event to fire.

Is there a way to force PreRequestHandlerExecute to fire when there is
no physical page (after the session is set), or is there a way to
maintain the session when calling server.transfer in the
AuthenticateRequest handler?

thanks,
matt
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top