0

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

0

1 Answer 1

-1

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");
}
1
  • Typically the browser back button works without reloading the page from the server though, so I don't think that will help.
    – Rup
    Commented Jun 23, 2021 at 14:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.