title: Session Expire URL bug
body: <p>I have a session expiring method that logs out a user after 20 mins using a countdown from a cookie. It works fine as the user does successfully get logged out. The only issue is the URL after appears as  </p>
  
  <p>localhost:8091/Login?ReturnUrl=%2FLogin%2FLogOut </p>
  
  <p>when it shouldn't have anything after /Login. I am using C# and ASP.NET 4 with MVC's.</p>
  
  <p>This is the JS used to redirect the user...</p>
  
  <pre><code>        function startCountdown(timeLeft) {
              if (countDownInterval &gt; 0) return;
  
              $('#idletimeoutcount').text(countDown);
              $('#idletimeout').slideDown();
  
              countDown = parseInt(timeLeft / 1000);
              countDownInterval = setInterval(function() {
                  $('#idletimeoutcount').text(countDown);
                  var secondsLeft = countDown--;
                  document.title = "Warning! " + secondsLeft + " seconds left until logged out";
  
                  if (countDown &lt;= 0) {
                    //  console.log('finished');
                      window.location.href = '/Login/LogOut';
                  }
              }, 1000);
          }
  </code></pre>
  
  <p>And the LogOut function:</p>
  
  <pre><code>   public ActionResult LogOut()
      {
          FormsAuthentication.SignOut();
          return RedirectToAction("Index", "Login");
      }
  </code></pre>
  
  <p>Is there any way to make it so the url is localhost:8091/Login ? (HTTP taken out because of stack overflow)</p>
  
  <p>It might be something to do with the web config which contains these tags:</p>
  
  <pre><code>          &lt;authentication mode="Forms"&gt;
    &lt;forms name="SqlAuthCookie" loginUrl="Login" timeout="20" slidingExpiration="true" /&gt;
  &lt;/authentication&gt;   
  </code></pre>