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

Sessions : same client, different web-apps

 
Gagan Indus
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After reading following from spec ,

...even if a servlet uses the RequestDispatcher to call a servlet in another web application, any sessions created for and visible to the callee servlet must be different from those visible tothe calling servlet..

, my impression about sessions is
" For requests from same client, For every different webapp , Web-container will maintain different HttpSession Objects"
I tried writing Attributes to Session from one web-app , and tried reading them in other web-app
( with cookies enabled / disabled both , just to certain ) , and this confirms my view .
So is it actually the way i stated ? plz confirm it

------------------
Gagan (/^_^\) SCJP2
Die-hard JavaMonk -- little Java a day , keeps u going .
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmed, although I should add that many servers actually allow you to share sessions across web-apps using a configuration option.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic