What is the best practice with handling global, request in request, variables in ASP.NET MVC 3.
What i need it for is configurations fetched from a database, that i want to make available throughout my MVC application, but the variables can change base on the request, so it need to be limited to the request scoop.
The configurations variables are determent in a global action filter, so the way i handle it right now i simply to add the variables as request data, but i where hoping there is a better way to handle this.
What is the best practice with handling global, request in request, variables in ASP.NET
Share
You could use
HttpContext.Itemsto store data that is available throughout the entire HTTP request.