0

After logout the user is directed to login page. Now, if user clicks on back button it should stay on login page itself. How can I make it possible by using code in java? I have used Servlet Filter... Tried invalidating session.I have even tried clearing cache(Expires, Cache-Control, Pragma).But got no success yet. Or maybe I’m using this in wrong way. Please guide me the correct way.

poonam
  • 43
  • 1
  • 9
  • invalidating the session should work fine. Can you show us some code so we can help you more? – Tom Nov 06 '12 at 12:54
  • Checkout the link below, have answered it already here: http://stackoverflow.com/questions/26420941/how-handle-browser-back-button-in-spring-mvc/31217043#31217043 – Shahid Yousuf Jul 04 '15 at 05:25

1 Answers1

0

The below posts might give you an idea about how to handle such cases

Community
  • 1
  • 1
Vivek
  • 1,640
  • 1
  • 17
  • 34