locked
how to remove all session when click on log out button? RRS feed

  • Question

  •  protected void linkbtnLogOut_Click(object sender, EventArgs e)
            {

                Session.Abandon();
                HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
                HttpContext.Current.Response.Cache.SetNoServerCaching();
                HttpContext.Current.Response.Cache.SetNoStore();
                HttpContext.Current.Response.Redirect("~/Login.aspx", false);
            }

    im using above code only for removing all session when click on log out button...after click on log out button it came to log in page after that  if i click on previous button on Internet Explorer browser it wont go to before page..but it not working in chrome and mozilla browsers..it goes to previous page ...please help me

              

    Giri $

    • Moved by Min Zhu Wednesday, June 13, 2012 9:52 AM (From:.NET Base Class Library)
    Monday, June 11, 2012 7:26 AM

All replies

  • Wrong forum.  Please post @ http://forums.asp.net.

    Jose R. MCP Code Samples: http://a.ly/5QM

    • Proposed as answer by Mike Feng Wednesday, June 13, 2012 5:57 AM
    Monday, June 11, 2012 7:37 AM