J
John Dalberg
I am setting the HttpContext.Current.User in the
Application_AuthenticateRequest event in global.asax.cs. When I use the
IsInRole function in a web page, it works fine. So far so good. (Note that
Integrated security is used and anonymous is turned off.)
This app will actually work as a child app for an Intranet app so when I
remove the application designation in IIS for the child app folder,
IsInRole is always null, which is not good. I am thinking that httpcontext
being used is the one from the root app. Is there any way to use a
httpcontext in the child app that is set in the global.asax and can be used
anywhere?
Then I decided to use a session object to persist between requests. The
session object is not visible in the Application_AuthenticateRequest and
Application_BeginRequest events which fire every time. Session_Start is
fired only once during the creation of the session which is not suitable
for my requirement. Are there other events that fire for every request and
where session object can be used?
TIA
Application_AuthenticateRequest event in global.asax.cs. When I use the
IsInRole function in a web page, it works fine. So far so good. (Note that
Integrated security is used and anonymous is turned off.)
This app will actually work as a child app for an Intranet app so when I
remove the application designation in IIS for the child app folder,
IsInRole is always null, which is not good. I am thinking that httpcontext
being used is the one from the root app. Is there any way to use a
httpcontext in the child app that is set in the global.asax and can be used
anywhere?
Then I decided to use a session object to persist between requests. The
session object is not visible in the Application_AuthenticateRequest and
Application_BeginRequest events which fire every time. Session_Start is
fired only once during the creation of the session which is not suitable
for my requirement. Are there other events that fire for every request and
where session object can be used?
TIA