Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how does jsp create session when there're two requests coming simultaneously  RSS feed

 
drac yang
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how does jsp create session when there're two requests coming simultaneously from the same client browser(maybe one tab maybe two tabs)?

i ask this question because it is said jsp could solve DuplicateSessionException in flex.

http://www.alexglosband.com/2010/03/avoiding-duplicate-session-detected-errors-in-lcds-and-blazeds/#comment-3498

if so, jsp would create same session(with same session id) for the two requests coming simultaneously? thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Servlets/JSPs will "reuse" the existing session when the second request comes in.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!