Monday 28 January 2013

After logout should go back in asp.net

Use this below script on the pages which you don't want to open after logout, it will disable the back option and stops to go back:

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

1 comments:

Unknown said...

its working

Post a Comment


                                                            
 
Design by Abhinav Ranjan Sinha