Hi all, I have problem with logout Even though user logout he/she can view last accessed pages which I don't want to be happen. I invalidate the session in logout.jsp still there is a problem. Please help me!
You can add the following code in your JSP <% response.setHeader("Cache-Control","no-store"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>
by this your current page wont be cached so when you logout from this page & click back;it will show page has expired.