Forum Moderators: open
Now the issue is:
We can not maximize the child window because it was set as such when we clicked on "My Messages". Now i want that if the session has timed out then if we click on the link, then the new window should not get open, rather the session timed out messages should get display in the parent window itself.
Your best bet would be to:
1. First check to see if the session has expired when they do anything in the popup windo.
2. If it has expired, write out javascript code to the popup window which executes onload. This code would tell the opener window to reload (either calling a javascript function in the opener or issuing a opener.document.location.reload() from the popup.
3. The popup would then close itself (window.close()), and the user would have a login and new session in the main window.
Problems would arise if the user is actually doing something in that window at the time that the session expires. You can always set your session expiration to a longer period of time.
Depending on what server side technology (ASP or PHP) you're using, there should be code on how to check if a session has expired.
-=casey=-