title: Spring MVC disable back button action after logout
body: <p>I used the following bean for the browser not to be able to go back after logout</p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"&gt;
          &lt;property name="cacheSeconds" value="0" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>in Spring 3.2.8.RELEASE this class is deprecated So i used the following </p>
  
  <pre><code>@Bean
      public RequestMappingHandlerAdapter requestMappingHandlerAdapter() {
  
          RequestMappingHandlerAdapter rmha = new RequestMappingHandlerAdapter();
          rmha.setCacheSecondsForSessionAttributeHandlers(0);
  
          return rmha;
      }
  </code></pre>
  
  <p>But I am unable to stop the back button action. what i mean is its going back the page after logout.</p>
  
  <p>Where am i making mistake??
  How to fix this?? </p>