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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Session problem with browser back button

Session problem with browser back button

Scheduled Pinned Locked Moved ASP.NET
help
5 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.
  • W Offline
    W Offline
    wEb GuRu
    wrote on last edited by
    #1

    I have added the sessions in my application.But the prob is that when i click to signout button.All sessions values are reset to 0.But if i use the back button of the browser it displays all the previous pages. Kindly tell me the sollution as soon as possible. Thanks for ur timely reply Take it easy...

    R E 2 Replies Last reply
    0
    • W wEb GuRu

      I have added the sessions in my application.But the prob is that when i click to signout button.All sessions values are reset to 0.But if i use the back button of the browser it displays all the previous pages. Kindly tell me the sollution as soon as possible. Thanks for ur timely reply Take it easy...

      R Offline
      R Offline
      Raven123
      wrote on last edited by
      #2

      Disable caching for your pages... I am not sure tho, how is session maintained? If it is maintained using cookies the only way a browser could get to previous pages is cache.

      1 Reply Last reply
      0
      • W wEb GuRu

        I have added the sessions in my application.But the prob is that when i click to signout button.All sessions values are reset to 0.But if i use the back button of the browser it displays all the previous pages. Kindly tell me the sollution as soon as possible. Thanks for ur timely reply Take it easy...

        E Offline
        E Offline
        enjoycrack
        wrote on last edited by
        #3

        hi there, the simple solution u can try by using javascript: history.forward() (maybe I does not remember exactly) hope this helps << >>

        W 1 Reply Last reply
        0
        • E enjoycrack

          hi there, the simple solution u can try by using javascript: history.forward() (maybe I does not remember exactly) hope this helps << >>

          W Offline
          W Offline
          wEb GuRu
          wrote on last edited by
          #4

          Where should I put the history.forward(). Plz guide me I have not done much work in javascript. If any one else no some other solution plz let me know. Thanx Take it easy...

          E 1 Reply Last reply
          0
          • W wEb GuRu

            Where should I put the history.forward(). Plz guide me I have not done much work in javascript. If any one else no some other solution plz let me know. Thanx Take it easy...

            E Offline
            E Offline
            enjoycrack
            wrote on last edited by
            #5

            hi, u try to put the code: window.history.forward(1); into the head tag (not tested with it yet:( ) << >>

            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