Retain httpsession object between different browser windows

Hi everyone,

Does someone know if there is a way to keep the same httpsession object between different browser windows of the same application?

To be more specific, I want to open a jsp from another jsp page(that includes a <%@page session="true"%>

directive) by using a javascript call window.open()

and retain the same session object of the caller id.

However this does not happen.

Each window keeps a dinstinct sessionID.

Is there any idea how to resolve this?

Thanks

[558 byte] By [droumpa] at [2007-11-26 20:12:00]
# 1
make use of the cookie jsessionid in this case & hardcode the session into into..say something likewindow.open("/ClassActionServlet?jsessionid=<%=session.getId()>")Guess tht should help in joining the session..
RahulSharnaa at 2007-7-9 23:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi RahulSharna ,

One question:

How am I supposed to "decode" this sessionid and use it for accessing the actual session object of the parent window?

Having it only encoded in the url doesnt seem to help.

The target is to share a common session object between windows of the same web app.

Thanks for response

droumpa at 2007-7-9 23:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Accidentally i found the solution.The urls wasnt exactly the same(one was with localhost and the other with my ip)
droumpa at 2007-7-9 23:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hi, it's the exactly same problem in my project, please tell me your solution, thank you very much.Amy
Dongdonga at 2007-7-9 23:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Actually, the session object is indeed shared between windows as long as all these windows share the same root url. So there is no problem with calls like window.open : everythink remains in the same context.I hope I helped
droumpa at 2007-7-9 23:17:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...