0

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.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278

1 Answers1

0

It looks like your browser takes data from cache. Try Balusc solution. Of course you may need to implement in your filter class, abstract methods from filter interface, I mean methods init and destroy.

Community
  • 1
  • 1
Zbyszek
  • 647
  • 2
  • 8
  • 21