This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all, I want to disable the back button in my browser. I have included the following in my code. response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("expires",0); response.setHeader("expires","0"); response.setHeader("Cache-Control","no-store"); But it does not help me. Kindly anyone let me know how I achieve both the Back button in the browser and also the right click. Thank you in advance. Regards, A.Charles. email@example.com
What is your goal in removing browser functionality? There are lots of tricks and hacks to "disable" the back button, try a search on google. None of them are elegant or user friendly. I would suggest you re-think the structure of the page you are trying to prevent people from returning to. Sessions seem to work well for me.