Help! Two browser caches, one session - how to manage?!?

Hi all. I have a j2ee application that my company has deployed and is browseable through Outlook's web browser. The application frequently opens a new window, which unfortunately runs in a SEPARATE Internet Explorer process (read...knows nothing about the existing session). Okay, so I added a method that appends ;JSESSIONID=xxx to any new child window and bingo, that window correctly interacts with the server in the current session.

Problem comes when the session expires, the user is presented with a login dialog in the child window, they login, all's good. But now the parent (the web page display in Outlook, now has no clue about the new session id created by the child window login).

Help!

The first problem was easy to solve because all child windows open through a common javascript function. However, there are so many ways the user could end the interaction with the child window that I'm stumped on how to tell the parent about the new session id. Can I do it through Javascript by setting a cookie on the parent document from the child?

Any help would be appreciated!

[1117 byte] By [tobza] at [2007-10-2 23:56:10]
# 1

One possible solution would be to add a JavaScript function to the beginning of any pages being displayed in a child window. This function would run onLoad and would check the current location url to see if it is the log in page. If the current location is the log in page the function would check to see if the opener (the opener is the parent window) exists or is not null. If the opener exists then the function could set the current location of the parent window to the log in page and the close the child window. If the parent or opener does not exists then the child window simply stays open with the log in page.

tolmanka at 2007-7-14 16:42:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Unfortunately this app is really designed to be run from a stand alone browser. Since Outlook has the capability of displaying web pages internally, I'm trying to make it work as unobtrusivley as possible. I'd hate for everyone else running the app to have their child window torn down to login and then have to open it up again.

Thanks for the suggestion.

tobza at 2007-7-14 16:42:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Bueller? :-)
tobza at 2007-7-14 16:42:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...