Hi all,

Maybe this is not much help but here is what have i done:
I have used JavaScript:

var curentdate=new Date();
var milisec=curentdate.getTime();

and appended this 'milisec' to my url as a parameter (like URL rewriting).

I think that an user to have both browser windows
open the same page (same session) in exactly the same milisecond
is very unlikely to happen.

But this needs JavaScript ...


Best wishes,
                    Andras.






----- Original Message -----
From: Padraic Renaghan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 27, 2000 2:31 AM
Subject: Re: Help! Session tracking per browser window?


> 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.
>
> --

___________________________________________________________________________
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