title: How to handle back button using spring security
body: <p>I am using spring security and i was wondering how to solve this back button or problem of the browsers.</p>
  
  <p>The thing is that after i login , when i click the back button . I am coming to the login page again. It would be very good if even on clicking the back button you stay in the logged in home page only.</p>
  
  <p>Same must be if i am logged out it should not be like when i click the back button i am again in the logged in home page. I am not sure what to do to solve this. I know browser caches the pages but When i use standard website like facebook or yahoo , looks like there is already some solution for it. Any direction or info will be very helpful.?</p>