I´m trying to perform some actions in the pipeline "httpRequestBegin" only when necessary. My processor is executed after Sitecore resolves the user (processor type="Sitecore.Pipelines.HttpRequest.UserResolver, Sitecore.Kernel" ), as i´m resolving the user too if Sitecore is not able to resolve it first.
Later, i want to add some rendering in the pipeline "insertRenderings", only if actions in the previous pipeline were executed (If i resolved the user, show a message), so i´m trying to save some "flag" in the first step, to check in the second. My question is, where can I store that flag? I´m trying to find some kind of "per request" cache...
So far, I've tried:
- The session: Wrong, it's too early, session doesn't exists yet.
- Items (HttpContext.Current.Items): It doesn't work either, my item is not there on the seconds step.
So far i'm using the application cache (HttpContext.Current.Cache) with some unique key, but I don´t like this solution.
Anybody body knows a better approach to share this "flag"?
Sitecore.Context.Itemscollection. - Rosen Petrov