Logout on Backward
<p>I want the page to sign out automatically if the user accessed the page from back the button.</p>

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

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    Label1.Visible = false;  
    try
    {
        if (!IsPostBack)
        {
            TxtLogin.Focus();
            Session["url"] = null;

            Response.Cache.SetNoStore();
            Response.Expires = -1;
            Session.Abandon();

            if (Page.User.Identity.IsAuthenticated)
            {
                FormsAuthentication.SignOut();
                Response.Redirect("~\\LoginPage.aspx", false);
            }
        }
    }
    catch (Exception ex) { throw new Exception(ex.Message); }
}
</code></pre>

<p>Its working in IE but not working in firefox how to do for firefox?</p>
