Session not ending on click of "OnLoggingOut" action
<p>I am trying to log out of a session on a website with the following code. However, seemingly nothing happens when I click on the logout button. </p>

<p>here is my code:</p>

<pre><code>&lt;asp:LoginStatus ID="LoginStatus1" OnLoggingOut="Logout_Click"  runat="server" /&gt; 
</code></pre>

<p>and c#: </p>

<pre><code>public void Logout_Click(object sender, EventArgs e)
    {

        Session.Abandon();
        FormsAuthentication.SignOut();
        FormsAuthentication.RedirectToLoginPage();


    }
</code></pre>

<p>This code is not ending the session, and it isn't even redirecting to the login page. </p>

<p>Web.config:</p>

<pre><code>&lt;authentication mode="Forms" &gt;
      &lt;forms loginUrl="url"   timeout="20" domain="domain"&gt;
      &lt;/forms&gt;
    &lt;/authentication&gt;
</code></pre>

<p>Thanks guys!</p>
