logout back button.
Hello all,
I have a controller
String actionType = RequestUtil.getActionType(req);
if(actionType.equalsIgnoreCase("logout")){
System.out.println("Loging off");
req.getSession().removeAttribute("user");
resp.setDateHeader("Expires", 0);
resp.setHeader("Pragma","no-cache");
resp.setHeader("CACHE-CONTROL","NO-CACHE");
req.getSession().invalidate();
String str = req.getRequestURL().substring(7);
if(str.startsWith("******")) resp.sendRedirect(resp.encodeRedirectURL("http://www.yahoo.com"));
Now I get redirected to yahoo.com but if I click on back button I takes me to my application
can anyone help me in this.
|