I'm working in an MVC application using MVC5. I was wondering about how can I declare a global variable. I have created variables in global.asax like this:
HttpContext.Current.Application["Login"] = "Jonh Doe";
Also I have created private static members in the controllers. But I have realized that if two users are browsing the app the value that one store on the variable is shared between the rest.
Any way that i can store variables that are not shared between all instances of the application?