problem with back button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niklesh
    New Member
    • Apr 2009
    • 3

    problem with back button

    Hi,

    I have designed a project such that each page is cached.
    When i click the log-off link, i set the following command so that no caching takes place and redirect to my home page(log-in page):

    HttpContext.Cur rent.Response.C ache.SetCacheab ility(HttpCache ability.NoCache )
    Session.Abandon ()


    but however if i click on the back button i'm able to go to the previous page even though i have set no caching in the log-off link's click procedure?

    so what should be done to avoid this from happening?

    Thanks in advance
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    I'm not quite sure, but I think you should check in the page_load whether or not the session is active.

    Steven

    Comment

    Working...