In Global.asax, I know you can set a property, like the one when you right click the project, and then click on the resource tab, in which you can set a string resource. But it's not a Session object. It's a reflection Object.
I also know that you can write to the resource or create new ones as well, but my VS2015 is malfunctioning at the moment, and I can't show an example of it.
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
public static string GetWebsiteName()
{
string pValue = Properties.Settings.Default.WebsiteName;
return pValue;
}
To access the string, MvcApplication is the class of the Project, not sure what yours will be.
string websiteName = MvcApplication.GetWebsiteName();