How to clear browser cache using java [duplicate]
问题 This question already has answers here : Prevent user from seeing previously visited secured page after logout (5 answers) Closed 4 years ago . I have a problem in sessions. When ever I logout the session is ended but then when the browsers back button is pressed I am getting the previous page. I am using jsp servlet technology and my code for logout is given below request.getSession().invalidate(); response.setHeader("Cache-Control","no-cache"); response.setDateHeader("Expires", 0); response