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");
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)