In my ASP.NET web application, I want to store an array of data that is accessible to all users of the site but retains a single state, modifiable by whichever user is logged in. What is the best approach for this? I understand I could probably go the route of using an Application wide variable, but are there better alternatives? I have also considered simply storing the state on the database and retrieving for each request.
Thanks in advance
Ian
The best way to go is via System.Web.HttpContext.Current.Cache if the state does not have to be persistent.
The cache is also availeble in the context of the page.