• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About HttpSession

 
Jack Lau
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
 
Guido Schoepp
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
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • 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
 
Gabriel Forro
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
Ranch Hand
Posts: 3371
12
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic