Hi hoping somebody might be able clear this up for me. I have done some searching and didn't really find any good answers
Our asp.net 2.0 web application is using the following for Sessions and Authentication
1) Custom Session State provide that saves the session to a DB
2) CSLA Identity & Principal Objects
3) Forms Authentication Cookie and ASP Login Control
It's working but I just found that my code in Application_AcquireRequestState fires like 20 times on each refresh or post. I found an answer that states they wrapped thier code with
if (HttpContext.Current.Session == null)
My problem is the first time Application_AcquireRequestState gets fired when the page is requested HttpContext.Current.Session is not null if the user is logged in but the rest of the times this method fires the session is null.
Copyright (c) Marimer LLC