• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!