I added this code to my logout.jsp page but it not work. i mean browser get back after logout when i press back button on browser.
<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
response.setDateHeader("Expires", 0);
request.getSession().invalidate();
response.sendRedirect("index.jsp"); // No logged-in user found, so redirect to login page.
%>
Comments
Post a Comment