Site icon Hip-Hop Website Design and Development

After logout browser’s again button into twenty sixteen theme profile

I’ve tried quite a few methods to forestall the browser’s again button from permitting somebody from utilizing it to return right into a guests logged out profile. The codes I used had been supposed to forestall the browser from caching knowledge from the final web page visited after logout. They do not work. WordPress logs the customer out as soon as they click on the logged out button, sure this portion wors. Sadly, you may see the final web page visited by the one who was logged on. The session is destroyed however the cache nonetheless holds the data for the final web page visited. When you click on any hyperlink on the profile web page you can be introduced again to the login web page. You weren’t imagined to have been capable of go away this login web page with out logging in. What code can use to pressure the browser to delete the information within the cache so the somebody cannot view data from a loggedout profile. Javascript would pose a safety threat. Sure, I do know you can not delete the browser’s historical past, however there should be a safe code for this. WordPress comes with file that destroys the session however I am unable to discover that file within the twenty sixteen code. Additionally, these codes don’t work:

  if(!isset($_SESSION['logged_in'])) : 
  header("Location: login.php");  

  unset($_SESSION['logged_in']);  
  session_destroy();   

Are you able to Pleeease assist!!!