locked
ASP.NET 4.0 Website - Disable browser back button - Enable back button after logging out from website RRS feed

  • Question

  • User-2136619341 posted

    Hi,

    I am working on an ASP.NET 4.0 website and I am using IIS 8 to host my website.  

    I want to disable the browser back button so that the users cannot go to the previous page by clicking on the browser back button.

    If the user logs out of the website and if they want to go to someother website using the same browser window, then the back button should be enabled.

    1. How to disable the browser back button only for the website? 

    2. If the session times our, user is redirected to login page. In this case also, the browser back button should be disabled.

    Any suggestions or articles on disabling browser back button will be helpful.

    Thanks
    Ashok

    Wednesday, June 15, 2016 2:53 PM

Answers