Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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
 
straws are for suckers. tiny ads are for attractive people.
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!