title: Disable back button after logout?
body: <p>I am using php. i want redirect users to logout page when he clicks back button after login. How to achieve this? where to write the code?</p>
  
  <p>i logged into site admin..logged out and then hit back button and i am able to see the previous page. Why site admin does not handle this.</p>
  
  <p>This is the code for logout in site admin:</p>
  
  <pre><code>if( !function_exists( 'adifier_logout_inactive' ) ){
  function adifier_logout_inactive( $username, $user ){
      if( !is_wp_error( $user ) ){
          $logout = true;
          if( !empty( $user-&gt;allcaps['edit_posts'] ) &amp;&amp; $user-&gt;allcaps['edit_posts'] === true ){
              $logout = false;
          }
          else if( get_user_meta( $user-&gt;ID, 'user_active_status', true ) == 'active' ){
              $logout = false;
          }
          if( $logout === true  ){
              wp_logout();
          }
      }
  }
  add_filter( 'wp_login', 'adifier_logout_inactive', 10, 2 );
  }
  </code></pre>