How to restrict browser back button after logout?

I'm facing a issue from couple of days, after logout user can view the login user history details using browser back button, so how could I resolve this issue. Could you suggest me to solve this issue

Thanks in advance

Topic logout Wordpress

Category Web


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

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.