Problem with browser caching

Hi All,

I have some problem with browser caching I cleared the cache and also invalidated the session and redirected to the login page if the session has expired, in IE there is no problem if I go back and refresh it is redirecting to the login page, but in mozilla when I click the back button in the browser even its redirecting to the login page but when I refresh the page its showing me the recent page of that particular user loggid in, please suggest me where the problem is!!

i did the following thing in logoff.jsp

session.removeAttribute("user");

if (session.getAttribute("user") ==null)

response.sendRedirect("sessionExpiry.do");

}

%>

In session expiry I just redirected to login page and invalidated the session

And also I validated the session

if (session.getAttribute("user") ==null){

response.sendRedirect("logon.do");

}

this is what i have done to clear the cache

response.setHeader("Expires","0");

response.setHeader("Cache-Control" ,"no-cache, must-revalidate");

response.setHeader("Pragma","no-cache");

response.setHeader("Cache-Control","no-store");

[1728 byte] By [Sowja] at [2007-11-27 6:45:21]
# 1
Over here If i hit the back button in the browser its holding the user in the session and hence displaying the corresponding page..Please help me out with this..
Sowja at 2007-7-12 18:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
we can't do anything with browser's back button
mimi_tan1985a at 2007-7-12 18:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hai sowjanya,i am also facing same kind of problem, if u got answer plz let me know .thanks.my mail id:reddycsreddy@yahoo.co.in
haiiiiiiia at 2007-7-12 18:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hi,My problem got solved. I just removed the redirection to the login page in sessionExpiry.jsp and instead placed an anchor tag pointing to the login page. Now even when I go back its just showing me the session Expiry page.Thanks
Sowja at 2007-7-12 18:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...