I am generating a popup window from my application. The application control is such that if the session has timed out, the user is directed to a login page.
If the session has timed out and a popup window is open, clicking on a link takes the user to the login page. I dont want the same to occur as I dont want the user logging in from a popup window etc.
I would rather close out these windows. How can this be accomplished?
Thanks much in advance
posted 9 years ago
I can think of a couple of ways you might accomplish this:
1.Automatically refresh the page every minute or so, and have it check for the existence of a session each time it refreshes. If none exists, close the window.
2.The same as number 1, except that you make an AJAX call to the server checking for a session instead of refreshing the page.