How to restrict browser back button after logout?

Just Put this code in your user history details page

if(is_user_logged_in()){
  // your user history details code
}else{
  wp_redirect("Your login Page url");
}