• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Information  RSS feed

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JSP application that communicates to a uniVerse database using RedBeans. There is a list of html documents we generate on one page, the list of file names gets stored in the session object, and then on another page we have back and forth buttons to go through this list. One of our customers has tried this application, whereby they have 3 browser windows open. They generate the pages on each browser window and then move to the navigation page on all 3. On the 1st and 2nd windows when they use the next and previous buttons they get the files that were stored from the 3rd windows results. Aren't each windows' session information stored within separate session objects? On the windows machine running the application we cannot duplicate this problem, it's on an AIX machine we experience the problem. I don't know if this is a Redback issue or not but figured I would throw this question in and see if it might be something with the session object. Thanks.

Rob
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66157
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible for multiple browser instances to share cookies. Shared cookies == shared session.

On Windows, IE can share cookies depending upon how the browser instances were opened.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear for the response. The instances were opened separately (i.e. from Program Files) and not from javascript code. How can you share cookies and/or not share them then? Thanks again.

Rob
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66157
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each browser to its own rules.

With IE, I think that if you open separate instances from the desktop icon or start menu, that they will not share cookies. If they are opended via JavaScript or by the user with ^N or File menu from an existing instance, cookies will be shared.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info Bear. I believe the problem we are having may very likely be related to the RedBeans we are using.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!