title: Logout Redirect on ASP.NET isn't working
body: <p>I have a testwebsite in which I've made the Loginstatus to be </p>
  
  <pre><code>[ &lt;asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect"     LogoutText="Log Out" LogoutPageUrl="Account/Logout.aspx"/&gt; ]
  </code></pre>
  
  <p>However when I click the Log Out on the screen .. 
  it goes to this url and doesn't actually call the logout page.  </p>
  
  <p>"http://localhost/TestWebSite/Account/Login.aspx?ReturnUrl=%2fTestWebSite%2fAccount%2fLogout.aspx"</p>
  
  <p>I was trying to make it call some logic to logout and remove a db row I have for my custom membership Provider.  This logic was placed in the page load of the logout.aspx.cs</p>
  
  <pre><code>Session.RemoveAll();
  
  FormsAuthentication.SignOut();
  FormsAuthentication.RedirectToLoginPage();
  </code></pre>
  
  <p>but of course it's not being called... 
  and of course if I login again with the ReturnUrl there, it immediately calls the logout page.
  I'm confused since this is not the behavior that I expected nor is documented.</p>
  
  <p>Please help.</p>
  
  <p>Thanks! </p>