I have a pop-up window that keeps refreshing every 10 seconds.If it finds that its opener has been closed ..it goes to the logout page and logs out the user.I have accomplished this task.If the user will closes the opener window, then the user is automatically logged out.
Now,if the user closes the pop-up window and then the opener window,I have no control.
What I want to accomplish is this: If the user closes the pop-up window while its opener is still present ,the user must be logged out.I need to capture the close event correctly for this.My problem is if I put the redirection to the logout page on the window's unload event,it is a problem ..as the unload event gets triggered even when the page is being refreshed.and this pop-up is refreshed every 10 seconds!!
Restriction : I can't change all pages of my application..that is why a pop-up window is opened when the user logs in and it keeps track of the user closing the opening window.
Any help/sugestion will be welcome.