This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

synchronizing on HttpSession

 
Antonio Tercero
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read in Head First Servlet and Jsp that if a client open a new window, the container can see the request from the second window as coming from the same session.
How can it be possible??
sending the same JSESSIONID ?
 
Srinivas Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess, you might have been confused a little bit with the new window.Simple example is that when you right click and select 'Open in new window' from a page in session, the new request from the second window will get the same session.
 
Antonio Tercero
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought that they meant "If you open two browsers, for example, Firefox and Explorer" the container can see the request from the second browser as coming from the same session"
That's because of my poor english ....

Thank you very much Srinivas
 
Bk Jacky
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


No second window means second instance of same browser(IE or Firefox).you can try it.open your gmail or yahoo account then open second window of same browser and again enter gmail.com or yahoo.com.It will not ask you for your user id and password.It will directly open your account.It means session is already present there and second window using same session.I hope it will clear your doubt.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic