Saturday, 2 June 2012

Prevent user to go back after logout

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>


--------------------------------------------------------------------------------------------------------------

~!~

No comments:

Post a Comment