0
会话Session_Start调用和ActionFilterAttribute中的OnActionExecuting之间会发生什么。在ASP.NET MVC中正在清除的会话
出于某种原因,当我设置是这样的:
protected void Session_Start(object sender, EventArgs e)
{
Session["GoToBuyPage"] = true;
}
,并尝试在这里访问的ActionFilterAttribute:
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
bool goToPage = (bool)Session["GoToBuyPage"];
它始终是零。任何想法为什么?