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. enduser cant go previous page using that back button in internet explorer

enduser cant go previous page using that back button in internet explorer

Scheduled Pinned Locked Moved ASP.NET
tutorial
6 Posts 4 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
    Member 3879881
    wrote on last edited by
    #1

    Hi i want to disable the back button for ie..., My enduser cant go previous page using that back button..., How to do that...,

    Thanks & Regards, NeW OnE, please don't forget to vote on the post

    C T 2 Replies Last reply
    0
    • M Member 3879881

      Hi i want to disable the back button for ie..., My enduser cant go previous page using that back button..., How to do that...,

      Thanks & Regards, NeW OnE, please don't forget to vote on the post

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can't. People who ask this, are usually asking because their permissions system is broken. If you build a persmission system properly, you will store a key in the session to tell you the user is logged in. If they log out, this is cleared, and every secure page will redirect to the login page if you browse to it and the session object is not set to tell you that a user is logged in.

      Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

      M 1 Reply Last reply
      0
      • C Christian Graus

        You can't. People who ask this, are usually asking because their permissions system is broken. If you build a persmission system properly, you will store a key in the session to tell you the user is logged in. If they log out, this is cleared, and every secure page will redirect to the login page if you browse to it and the session object is not set to tell you that a user is logged in.

        Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

        M Offline
        M Offline
        Member 3879881
        wrote on last edited by
        #3

        Hi i am using session on my forms, Using user only i am doing all those things.., So i cant abondom session..., So i looked in js..., They given this script, Its working cool, Becoz of this my session will get any probs?????, Still now i didnt face any session probs of this script..., But i like to confirm it, Plz tell me can i use this script to avoid go back operation in my browser..., This script i called in all the page body onload event: function disable() { window.history.forward(1); }

        Thanks & Regards, NeW OnE, please don't forget to vote on the post

        E C 2 Replies Last reply
        0
        • M Member 3879881

          Hi i am using session on my forms, Using user only i am doing all those things.., So i cant abondom session..., So i looked in js..., They given this script, Its working cool, Becoz of this my session will get any probs?????, Still now i didnt face any session probs of this script..., But i like to confirm it, Plz tell me can i use this script to avoid go back operation in my browser..., This script i called in all the page body onload event: function disable() { window.history.forward(1); }

          Thanks & Regards, NeW OnE, please don't forget to vote on the post

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          The only thing that might affect you is people can turn javascript off in their browser

          We are not a Code Charity

          1 Reply Last reply
          0
          • M Member 3879881

            Hi i want to disable the back button for ie..., My enduser cant go previous page using that back button..., How to do that...,

            Thanks & Regards, NeW OnE, please don't forget to vote on the post

            T Offline
            T Offline
            tina newcoder
            wrote on last edited by
            #5

            i don't know how to disable 'back' button, but, I have a idea .... suppose, u have 10pages as 1.aspx,2,3,....9.aspx now the user moves from page 3.aspx to 4.aspx now, when the user arrives at 3.aspx, use Session["pagenumber"]="3"; when the user navigates to page 4.aspx, change it as Session["pagenumber"]="4"; at the entry of each page (in the page load function) check this entry ! :)

            1 Reply Last reply
            0
            • M Member 3879881

              Hi i am using session on my forms, Using user only i am doing all those things.., So i cant abondom session..., So i looked in js..., They given this script, Its working cool, Becoz of this my session will get any probs?????, Still now i didnt face any session probs of this script..., But i like to confirm it, Plz tell me can i use this script to avoid go back operation in my browser..., This script i called in all the page body onload event: function disable() { window.history.forward(1); }

              Thanks & Regards, NeW OnE, please don't forget to vote on the post

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              New one wrote:

              This script i called in all the page body onload event: function disable() { window.history.forward(1); }

              This might work. Sometimes. Anyone who wants to defeat it, can. Trivially. So, write good code in the first place, and you won't need this.

              New one wrote:

              Hi i am using session on my forms, Using user only i am doing all those things.., So i cant abondom session...,

              This makes no sense at all. If a session object marks that a user is logged in, of course you can abandon it. The session is unique per user, that's why you use it in the first place.

              Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

              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