My ASP.NET MVC application is a small part of a bigger ColdFusion app that is going to be soon replaced completely. I'm passing some parameters from ColdFusion part through cookies and need to check for this information before I run every action. In case if the information is missing I need to redirect to the parent site. What is the best place to put this functionality and how to call it uniformally?
Currently, I have implemented a base controller and in every action method I call a method from the base controller and based on the return result either redirect or continue with action. This approach seems to work but it clutters my action methods with consern not directly related to the action. How could I separate it out, are there any lifecycle events for controller I could tap into?