Return-Path: Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 74469 invoked from network); 1 Feb 2001 19:30:39 -0000 Received: from gatekeeper.hksystems.com (HELO gatekeep.hksystems.com) (root@205.160.128.130) by h31.sny.collab.net with SMTP; 1 Feb 2001 19:30:39 -0000 Received: from mkefil01.mke.hksystems.com (mkefil01.mke.hksystems.com [10.1.11.1]) by gatekeep.hksystems.com (8.11.1/8.11.1) with ESMTP id f11JfiV13043 for ; Thu, 1 Feb 2001 13:41:44 -0600 (CST) Received: from irista.com ([10.1.120.96]) by mkefil01.mke.hksystems.com (Netscape Messaging Server 3.52) with ESMTP id AAAD10 for ; Thu, 1 Feb 2001 13:30:36 -0600 Message-ID: <3A79B8E5.76FA4612@irista.com> Date: Thu, 01 Feb 2001 13:28:38 -0600 From: Peter Alfors Organization: HK Systems, Inc X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en,de,fr MIME-Version: 1.0 To: struts-user@jakarta.apache.org Subject: Re: session ids cont... References: <3A798ADB.B74D6436@irista.com> <3A798F41.6A919502@acm.org> Content-Type: multipart/mixed; boundary="------------8A43A509799518D1DDD7220F" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------8A43A509799518D1DDD7220F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Steven D. Wilkinson" wrote: > Peter, > > I.E. 5.0 and 5.5 generate unique session ids for each simultaneous > > browser session. However, both Netscape 4.7 and Netscape 6 return the > > same Id. > > What do you mean by simultaneous browser sessions. If you create a new window > CTL+N in IE5.0 you get the same id. (Is this simultaneous?) If I start Netscape 4.7 from my desktop (2 instances of it) and go to the same page in my webapp. I can printout the session id on the screen. Both browser instances will have the same session id. However, two instances of IE 5.0 will have different IDs. (this is what I want). > > > I thought that both netscape and IE generate new id's if you launch the browser > from the desktop. I also thought both netscape and IE use the same id's if you > create a new window from an existing window. > I haven't tried creating a new window from either netscape or IE. But if this will cause both windows to have the same session, then this is something I need to handle also. > > I use IE5.0 for my testing and this is that way it works, at least with the > build from 01-28-2001. I can create a new browser window from the current one > and both have the same jsessionid. > I am using IE 5.0 & 5.5 and Netscape 4.7 & 6 for testing. > > I'm using Tomcat4.0-m5 for my testing. I don't know what you are using. > I am using Tomcat 3.2 > > Are you using the for all of your links? And are you using > for all of your actions? I found that if you don't you will have > a problem. It's either all or nothing. If it's nothing your on your own. At > least that has been my experience. > Right now I am NOT encoding my links. However, if my assumptions are correct... Encoding the links will not help me. Encoding adds the session id as a query string to the links. If the two windows have the same session, then the links (in each window) will still use the same session. > > Steve Here is the problem I am running across. I use beans that store information pertaining to a specific record in the database. When a user selects an item from a list, the bean is populated and placed in the session. I put it in the session because subsequent pages require this beans information as well. However, if the user has two browser windows running, sharing a session, it is possible for the user to update the data for the bean in one window, and then retrieve incorrect information in the other window. It is very probable that a user will want to have multiple browsers running so that he/she can compare data. I hope you can all follow that. I don't think that I described it very well. --------------8A43A509799518D1DDD7220F Content-Type: text/x-vcard; charset=us-ascii; name="peter.alfors.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Peter Alfors Content-Disposition: attachment; filename="peter.alfors.vcf" begin:vcard n:; x-mozilla-html:FALSE org:


Bringing Vision to Your Supply Chain adr:;;;;;; version:2.1 end:vcard --------------8A43A509799518D1DDD7220F--