dcsimg
communication between two HttpSession objects
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhay_Shukla
Posted On:   Wednesday, January 2, 2002 11:05 AM


I am storing a user's information into the HttpSession object (setAttribute()).
Whenever I need to perform some action for this user, I retrieve his information from the session (getAttribute()). But when
I need to share one user's information with other, how do I make sure that the other user is really
carrying out a session...or to put it in other way, how does two session objects communicate with each other.

Re: communication between two HttpSession objects

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, January 2, 2002 11:34 AM

when you need to share user's information with another user, you store it in the ServletContext and not HttpSession. HttpSession is for a single user, ServletContext is for all users. so use them appropriately.
About | Sitemap | Contact