Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

Maybe this is an ASP.NET beginner's question, but I could not find the answer on this site. I could get a ADF Claimstore object working only in the HttpApplication.PreRequestHandlerExecute event.

In which HttpApplication events is the ADF claimstore expected to be available?

share|improve this question

1 Answer 1

It is not documented in which Web Application Event ADF should be executed. The recommendation would be to use an event that is executed before the Request Handler is executed and after the session data and cookies are available since they are mandatory for ADF. HttpApplication.PreRequestHandlerExecute is the right event for this.

Please note that ADF is executed as a Http Module that implements IRequiresSessionState and populates claims on PreRequestHandlerExecute

Sample Code:

public class HttpModule : IHttpModule, IRequiresSessionState {
    public void Init(HttpApplication application)
        {
            application.PreRequestHandlerExecute += new EventHandler(this.OnPreRequestHandlerExecute);
        }
}

I hope this helps.

share|improve this answer
    
You are not saying it explictly but I think this means there are no other HttpApplication events cause they are either to early or to late in the chain. –  Jan H Apr 2 at 7:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.