[eluser]WanWizard[/eluser]
The quick and dirty way is to disable caching in the page header:
Code:
// make sure the page isn't cached
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
You don't want to do that for every page, that will have quite an impact on your site performace.
Using the back button in itself is not a problem, the biggest issue is the re-post of a form from a cached page. To solve that, you have to add a nonce to the form (in a hidden field), and after a succesful post check if you haven't stored the nonce before. If you have, issue a 'duplicate post' warning, if not, store that somewhere (in the session) .