1. The global session .cshtml
<body>
//直接显示在页面@@@@@@@@
@Session["test"];
</body>
或者运算
@if (Session["test23"] != null) { Response.Write("9898989898"); };
2. Session of the different global controller
var controller_test = Session["test"];测试不同controller之间session传值;;;ok
3. The filter uses the session global session
HttpContext.Current.Session["UserID"] = "8686";在过滤器中使用session