• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt regarding session attributes

 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which statements about session attributes are true ?

Attributes bound into a session are available to any other servlet that belongs to the the same ServletContext.

I dont agree with this statement. I think it should be "Attributes bound into a session are available to any other servlet that belongs to the the same ServletContext and same Session."

or

"Attributes bound into a session are available to any other servlet that belongs to the the same Session."

HFJS Page 267 question 7

Please explain.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you're right.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!