My bean class code is:
FacesContext context = FacesContext.getCurrentInstance();
ExternalContext ec = context.getExternalContext();
final HttpServletRequest request = (HttpServletRequest) ec.getRequest();
request.getSession(false).invalidate();
return "logout";
Here my problem is whenever user successfully login and do some work in transaction page after he click on logout button, logout will work but when user click back button on browser window it opens the user transaction page.