0
ActionFilterAttribute에서 Session_Start 호출과 OnActionExecuting 간의 Session은 어떻게됩니까?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"];
을 항상 null의 나는 이런 식으로 뭔가를 설정 몇 가지 이유를 들어
. 어떤 아이디어?