Prevent user to go back after logout by javascript

put below javascript in head tag of first page which comes when you login
<script type = "text/javascript" >
  function preventBack()
   {
    window.history.forward();
   }
  setTimeout("preventBack()", 0);
  window.onunload=function(){null};
</script>

Post a Comment

0 Comments