Q:

Asp.net logout codes not working

it seems that when i hit log out button and hit the back button on the browser. it shows me the page which should not have been the case. I'm using form authentication and it works fine in Mozilla Firefox but not Google Chrome.
here is the codes.
        Session.Abandon();
        Session.Clear();
        FormsAuthentication.SignOut();
        Response.Redirect("~/Login.aspx");

how can i fix this.

A:

Add this code with javascript to your logout button,
 btnLogout.Attributes.Add("onClick", "javascript:history.clear(); return true;");

I believe that this will also clear the browser history, as JavaScript works on the client, and you are facing problem there only. It will not help with Server Side code.

