how to prevent user from going back to previous page in php

how to prevent user from going back to previous page in php


 <script type="text/javascript">
function preventBack(){window.history.forward()}; 
selTimeout("preventBack()", 0);
window.onunload=function(){null;}
</script>