• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

About HttpSession

 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

One session represent to one client (e.g.browser) or one machine(e.g. many browsers) ?

Thanks,
Jack
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jack Lau:
One session represent to one client (e.g.browser) or one machine(e.g. many browsers) ?



A session represents a client - not an ip address (machine). It is possible to have opened several browser windows, each working with a different session.

Guido
 
Bartender
Posts: 3647
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Guido Schoepp:


A session represents a client - not an ip address (machine). It is possible to have opened several browser windows, each working with a different session.

Guido



... and more important that it is possible to open several browsers, each participating in ONE THE SAME session.

That's why session scope attributes CAN NOT be considered thread safe.

regards,
MZ
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

it depends on the browser type also:
FireFox - many windows - one session
IE - many windows (openned separately - not using ctrl+N) - many sessions

Which is the correct behavior? I do not know unfortunately
 
Jack Lau
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I am also very confuse about it. I find that Netscape 7.0 return same session id for different browser in the same machine, but IE return different session id for different browser!
 
Mikalai Zaikin
Bartender
Posts: 3647
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gabriel Forro:
Hi,

it depends on the browser type also:
FireFox - many windows - one session
IE - many windows (openned separately - not using ctrl+N) - many sessions

Which is the correct behavior? I do not know unfortunately



Gabriel, please read here how to open several MSIE instances participating in the same HTTP session.

regards,
MZ
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic