/// <summary> /// Puts the BaseUrl and Culture into the ViewBag for all controllers /// </summary> /// <param name="filterContext"></param> protected override void OnActionExecuting(ActionExecutingContext filterContext) { base.OnActionExecuting(filterContext); ViewBag.OperatorSession = OperatorSession; ViewBag.BaseUrl = BaseUrl; ViewBag.Culture = System.Threading.Thread.CurrentThread.CurrentUICulture.Name; ModalMessageHelper.GetInstance().ResetAcknowledgments(); // CheckExpiration(); // no need to do it on every call //ViewBag.ModalMessageHelper = null; CheckAssignoThresholdViews(); }Note the commented call to CheckExpiration. Our License.ActiveLicense.IsValid is a static property which I may check instead. My question is - what is the best method to check for that property - should I use OnAuthorization method instead? Also, I want to re-direct to the ~/DataMaintenance/ImportLicenses page in this case where controller is also based on the BaseController - I am afraid I may go into the infinitive loop?