hello everybody,

I am having problem with logout of a Users Account in Firefox because whenever the user presses the Back browser button, the personal page was displayed, showing their personal details. Is there a way to logout successfully in firefox and chrome i;e when user click back button after logout it should navigate him to login page.
here is my code for logout.

Session.Clear();
        Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetNoStore();
        Response.Expires = 0;
        Response.Cache.SetNoStore();
        Response.AppendHeader("Pragma", "no-cache");
        Response.Redirect("Login.aspx");

i am already using sessions

not 100% if it works.. try
<script language="JavaScript">
javascript:window.history.forward(1);
</script>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.