I need to capture the window close event and logout the user session,I should not do that for refresh action of the user or if the user navigates to other site from the existing site.
Posted on 2008-10-02
The issue that I am facing is I need to capture the window close event,I already know that I can do it in two ways
1)catch the unload action with Java script
2)Catch the window.event.clientX and window.event.clientY.
Once I capture this input I should be able to log-off the user.
But the issue is, I should not log-off the user in the case if refresh button is pressed F5,and in the cases the user navigates to other site from the parent site.