title: MVC5 Calling function on MapRoute
body: <p>In our site we are making something like "GodMode", when this mode is enable, we want to have data display differently than regular public website. For example, if a user visit</p>
  
  <pre><code>http://domain/Home/Index 
  </code></pre>
  
  <p>He will see regular public page. but in same browser/session if he visit</p>
  
  <pre><code>http://domain/godmode/Home/Index
  </code></pre>
  
  <p>then we want to show other information. For this I create a Static boolean Variable that I <code>wish</code> to set when we detect if <code>godmode</code> is On. So, I am looking a way to do this. Any Idea how can I set this variable? Or what is best place to set it. so both URL can run in Same Session without interrupt from each other.</p>
  
  <p>As I know <code>Application_BeginRequest</code> in Global.asax is for Application level start, not per URL request. I didn't found any relevant replacement for it. Can anyone please suggest one or if we can call a function in MVC <code>MapRoute</code> function?</p>