Hi,
First - sessions were designed to be created only one for each browser
running process.
Two different browser processes running dont share session cookies, while
two different windows opened within the same running browser do.

You may try two workarounds, but none of them can be controlled too well
from the servlet's side. Probably some Javascript hacks might help
here too.

- Use URL rewriting for session tracking - so each browser window will
  inherit its own session ID.
or:
- Open multiple browsers processes, by running multiple browser
  binaries. (not by menu File->New Browser, or right-click-on-link->
  open in new window means).
  Multiple browser processes should not share session cookies anymore.
  However with MS-IE, users need to set some IE property that force it to
  create a new browser process each time IE is launched, instead of re-using
  an already running IE process.... That's confusing too.

Avoid using "instance" in this context, it is very ambiguous -
some might think at browser process, others to broser window, or
session instance, or servlet instance, or any Java object instantiated
with new()

Cezar
On Tue, 31 Aug 1999, Neeraj Arora wrote:

> Hi to all,
>
> I am facing one problem that when I open multiple instances(in different browser 
>windows)
> of my site same session Id is given to all different instances.
> Even I tried to use synchronization for
>
>             request.getSession(true);
>
>                                          but still its giving the same id.This poses 
>a problem doing
> user specific tasks.
>
> Neeraj
>
>
> Get your FREE Email at http://mailcity.lycos.com
> Get your PERSONALIZED START PAGE at http://my.lycos.com
>
> ___________________________________________________________________________
> 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
>

___________________________________________________________________________
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