On Thu, 24 Feb 2000, Neelesh Kamkolkar wrote:
> I want to keep track of an object in a servlet per browser window that's up.
> So, I thought I will just use the session object.
>
> However, I think that the session object/id is the same for the each new
> window the browser brings up. Is this true? If so, this won't work for me.
>
> I need to track an object per session/per browser window. How can I do that?
> Is it doable from within servlets without any client side scripting?

That is not going to be easy, even if it is possible. You'll probably
need to implement your own sessioning on the server side so you can
force the sessionId into the URL and not use cookies. Then on the client
side you'll need some javascript to detect when the user opens an
existing page (with the embedded sessionId) into a new browser window.
The javascript would need to re-request the page from the server asking
for a new session id... or something like that... I'm not even sure if
what I just described is doable, but it is the only thing I can come up
with.

You might want to reconsider your approach. Perhaps if you told us what
problem you were trying to solve by using sessions per browser window we
could help more.

--
Padraic Renaghan /pad-rik ren-a-han/
<[EMAIL PROTECTED]>  http://renaghan.com/pcr/
   bookmarker - web based bookmark management GPL software
   phpop - web based POP mail reader GPL software
   clicked and the read - ezine

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to