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
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