I have an simple MVC app I want to check first the session as this action
public ActionResult Index()
{
if (Session["UserInfo"] == null)
{
return RedirectToAction("Login", "Users");
}
return View();
}
My question is about is there a way to enforce this check to all actions without do it manual for each action?