We have an ASP.NET page running on .NET Framework 4.0.
At the moment we store some values that should be available during the entire lifteime of the application in HttpContext.Current.Application[“keyToTheValue”].
Is this the wrong place to store values, that we need for an indefinite time,
or how can we configure the application to not recycle those values?
Oh, important to notice: We actually run the page in integrated mode, maybe this has some influence on the Application caching.
If your data is sensitive then store it in your DB for using it lifetime..it it’s not that much sensitive then use persistent Cookies and set it’s expiration period to max…