快速的问题...MVC的Global.asax变量和会话
在MVC5,是在Global.asax变量通过所有会话访问或不MVC为每个会话的全球创建和实例?
例
public class Global : System.Web.HttpApplication
{
public static string Current_UserName = "";
protected void Session_Start(object sender, EventArgs e)
{
Current_UserName = User.Identity.Name;
}
}
所以将用户时用户B加载应用程序A Current_UserName
变化?