2 Replies Latest reply on Jun 8, 2011 4:25 AM by pauland

    How to distinguish between browser close and browser refresh?

    Kumar Pratik Level 1

      I wanted to logout user and do some clean up operation when user clicks on browser close button. I am using javascript method onbeforeunload to achieve this and it is working fine. But problem is when user cliks on Refresh button on Browser then also the same method is getting called and it is making user log off.

      Please let me know how can i solve this issue?