This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

new IE -> new session, but new Firefox -> same Session ?  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While experimenting with session i noticed the following. If i call a sertain servlet from Firefox, there is a sessionid with let's say 1. if i call the same Servlet from a new IE window, i get a new sessionid ='2'. If i then open the same again in Firefox, the sessionid was the same as the first call; '1'. However,m everytime i open a new IE window, i get a new sessionid, AND not with firefox. Anybody any clues?

Thanx.
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are talking about the example in page 259. Its probably because you open a new tab in the same firefox instance. So only same number is coming again and again. Where as you should be opening new IE window every time resulting in new number.
 
Jan Paul Vos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not used tabs in Firefox, but new instances of Firefox (new window, lik with IE)....
 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

A similar thing happens with Opera.

I am not certain as to why but I think it has something to do with the way that the applications are written.

I think that either the GUI component of Firfox (the bit you see) just talks with a non gui bit that does most of the communication work and caching, cookies etc, or for every instance of firefox there is only one instance of the cache, and cookies etc which every gui talks with.

Either of these could give the results that you are experiencing and I have also seen in Opera. My guess is that it is probably the second one, but I really have very little to base this on.

Mat
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!