Adrian's description is also true for Netscape.

Carl, it isn't possible to "make" the browser use different sessions.
Most browsers implement a system where all browser windows (i.e.
instances) share a session object.

Adrian, you are correct about a possible solution, but one can never
make a user follow instructions.  ;)

Now, do you want to be able to log in as different users on the same
machine at the same time?

The most obvious solution is store all variables as request variables
and pass them between pages, using hidden forms, etc.  Then you can
check for the user ID while opening a new window, and if not present,
lead them to a login page.

--
Becky Norum
Database Administrator
Center for Subsurface Sensing and Imaging Systems (CenSSIS)
Northeastern University
http://www.censsis.neu.edu


On Tue, 2003-03-11 at 03:41, Adrian Janssen wrote:
> I think this would hapen outside the localhost environment (i.e. if the site
> was hosted on a remote server), the problem is that all the browser windows
> are open on one PC and share the same session-id cookie.
>
> If you are using IE as your browser, then whenever you file->new->window
> (same as Ctrl-N) you will open a new window that shares the same session as
> the old window. The work around in IE to run each session separately is to
> start each window by double-clicking the desktop icon or running "iexplore"
> using start->run.
>
> Cheers
> Adrian
>
> > -----Original Message-----
> > From: Carl Woermann [SMTP:[EMAIL PROTECTED]
> > Sent: 11 March 2003 10:30
> > To:   [EMAIL PROTECTED]
> > Subject:      Testing with sessions on localhost
> >
> > Hi all;
> >
> > I'm using the sessions object to store user information in sessions, such
> > as
> > name, details etc...
> >
> > Unfortunately when I test several pages at the same time (within the
> > session
> > time) the user information seems to be overwritten / destroyed and the
> > servlet seems to freeze.. .
> >
> > I'm assuming that this is due to the shared session object, being modified
> > by what the server sees as the same user. While I'm also assuming (I've
> > learnt to never assume anything..) that this would not probably not happen
> > outside the locallhost enviroment, I was wondering how I could simulate
> > different users in order to do the testing?
> >
> > Thanks
> > CARL WOERMANN
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.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

Reply via email to