Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. visited pages shud not shown pressing browser back button

visited pages shud not shown pressing browser back button

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _tasleem
    wrote on last edited by
    #1

    hi all i had made a site with login page and visit some pages and then i log out and then press the back button of browser then those visited pages are shown to me which i dont want, even though i had expired the session variables as server side code is not executed when i press the browser back button,i think pages are shown from browser histroy which i want to clear how to clear browser history. i want to the similar functionality present in yahoo or hotmail suppose afer logout when we press the browser back button then visited pages are not shown.

    Tasleem Arif

    S I 2 Replies Last reply
    0
    • _ _tasleem

      hi all i had made a site with login page and visit some pages and then i log out and then press the back button of browser then those visited pages are shown to me which i dont want, even though i had expired the session variables as server side code is not executed when i press the browser back button,i think pages are shown from browser histroy which i want to clear how to clear browser history. i want to the similar functionality present in yahoo or hotmail suppose afer logout when we press the browser back button then visited pages are not shown.

      Tasleem Arif

      S Offline
      S Offline
      salysle
      wrote on last edited by
      #2

      Tasleem: Are you using Forms Authentication? If so are you calling FormsAuthentication.SignOut() in response to the log off event?

      1 Reply Last reply
      0
      • _ _tasleem

        hi all i had made a site with login page and visit some pages and then i log out and then press the back button of browser then those visited pages are shown to me which i dont want, even though i had expired the session variables as server side code is not executed when i press the browser back button,i think pages are shown from browser histroy which i want to clear how to clear browser history. i want to the similar functionality present in yahoo or hotmail suppose afer logout when we press the browser back button then visited pages are not shown.

        Tasleem Arif

        I Offline
        I Offline
        indianet
        wrote on last edited by
        #3

        Response.CacheControl = "no-cache" Response.AddHeader("Pragma", "no-cache") Response.Expires = -1 In all the pages that you don't want to cache local copies

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups