title: Redirect to login page from IFrame
body: <p>I have an ASP project, in that one module is a separate MVC project. This module (which is hosted seperatly) I am displaying by using an IFrame. The issue is, if the Session expires from the MVC project, I need to redirect the page to the ASP project's login page. </p>
  
  <p>In my MVC project, I have this function:</p>
  
  <pre><code>public ActionResult Login(string reason)
      {
          switch (reason)
          {
              case BUMP_AUTHENTICATION_REQUIRED:
                  Response.AddHeader("X-Shell-Redirect", "AccessDenied");
                  ViewData["LoginMessage"] = "";
                  break;
  
              case BUMP_SESSION_TIMEOUT:
                  Response.AddHeader("X-Shell-Redirect", "SessionTimeOut");
                  ViewData["LoginMessage"] = Strings.LoginSessionTimeoutMessage;
                  break;
  
              default:
                  ViewData["LoginMessage"] = String.Empty;
                  break;
          }
  
          return View(); //Which return the login view of the MVC Project
      }
  </code></pre>
  
  <p>How do I achieve this?</p>