asp.nethttpapplicationhttpapplicationstate

HttpContext.Current.ApplicationInstance.Application vs HttpContext.Current.Application


If I want to store some Objects to share across pages and session which one should I use?

HttpContext.Current.ApplicationInstance.Application or HttpContext.Current.Application.

I was using HttpContext.Current.Application but just got confused between the two.


Solution

  • They both refer to the same thing, the HttpApplicationState