This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
How can we make the "Page Expired" option when user > clicks on the Back button of the browser?(I am talking > with respective Session tracking) > I mean after coming to Logout page,instead of > Logging out,if the user clicks on the Back button of > the browser,it again opens returns main page without logging in. I'm using JSP session.invalidate is not working. then i tried clearing the cache using response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); but now the exact situation is if I login I enter the main page and then logging off brings me back to login page. Now pressing the browser back button it shows something like "page has expired press refresh button" pressing the refresh button a dialog asks retry or cancel if I press retry It again opens the main page without logging in.
Vishal, Try this,if it helps u, Keep the code of cache as it is and add following lines at top of ur jsps. if(session.getAttribute("userid")==null) response.sendRedirect("login.jsp") and add value to userid in session at login. and invalidate session after logoff regards Praful [ October 14, 2003: Message edited by: Praful Thakare ]
All desirable things in life are either illegal, banned, expensive or married to someone else !!!