Is there a way to make it so the browser does not cache the page? Because on my page, say if they log out and then go back to an admin page, the admin links are still there. If you hit refresh, it will then get the new page without the admin links. Also, when I delete a record, it still displays until I hit refresh.
Use this :
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache");
Remember to put this before anything is "outputted" !