In my web java application, I succeed to logout from the principal page to the index page but when I clicked the back button of the browser I had the principal page in spite of I didn't enter my user name and my password.
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
request.getRequestDispatcher("index.html").include(request, response);
HttpSession session=request.getSession();
session.invalidate();
out.close();
}