Probem: LOGOUT NOT WORKING PROPERLY,showing all previously viewed jsps.(pages)
I am designing a java web application ,using jsp,servlets and beans using model 2 architecture..
While trying to logout in web application ,it is going to login page, but we while navigating through back button, previously viewed pages are showing up, I have used removeAttribute method ,it is working fine,session variable is getting removed, But again while navigating through back button all the viewed pages are showing up. I dont know why they are not getting updated,i have written code the emptying the cache,can u please help me out in this.
here is my code in Logout.jsp..
if(window.history.forward(1) != null)
<% String re =(String)session.getAttribute("user");%>
response.setDateHeader ("Expires", 0);
<% String re1 =(String)session.getAttribute("user");%>
String url = response.encodeURL("LoginScreen.jsp");
waiting for ur reply