I have an attribute that fired when any request recieve to my asp mvc application.
public class AllActionsAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
var session = Session["mySession"]; //it' doesn't work
}
}
Is there any way to check Session in OnActionExecuting() function?