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. disabling back button

disabling back button

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 2 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.
  • M Offline
    M Offline
    Mack Ait Aoudia
    wrote on last edited by
    #1

    Hello everybody, I disabled the back button with disabling the page's cache. But when I refresh the previous page I get a postback and sessionid has the same value, so I still logged on. Is anyone could tell me why the session_end is not fired when I browse to another site from my application (by typing the url in the adress bar)? I get in web.config the sessionState set to mode="InProc". thanks.

    S 1 Reply Last reply
    0
    • M Mack Ait Aoudia

      Hello everybody, I disabled the back button with disabling the page's cache. But when I refresh the previous page I get a postback and sessionid has the same value, so I still logged on. Is anyone could tell me why the session_end is not fired when I browse to another site from my application (by typing the url in the adress bar)? I get in web.config the sessionState set to mode="InProc". thanks.

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

      session won't end until u close ur session and if u r moving to someother page from ur app still ur session will be active hi to all susa

      M 1 Reply Last reply
      0
      • S sudharsong

        session won't end until u close ur session and if u r moving to someother page from ur app still ur session will be active hi to all susa

        M Offline
        M Offline
        Mack Ait Aoudia
        wrote on last edited by
        #3

        Hello, This is my problem. I'm looking for any way to avoid logging after the user moved from my app. Now, in masterpage I check if the session("user") is not nothing else redirection to login page. But if user moved from my app and with back button he get an IE page with a message inviting him to refresh the page and when he does so (F5 or refresh button) he still logged and get the previous page. How to avoid this? I'll appreciate any suggestion.

        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