• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attribute in ServletContext

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I put attributes in the ServletContext I have the problem that this attributes will be visible per everybody ??? Using session I dont have this problem, because session is per browser. OK?
 
john smith
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one ServletContext per application so yes attributes of this object are avaliable application-wide. The Session object is bound to a particular session id and so is avaliable only to a particular client session.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic