> From: JB JUNG [mailto:itsjb.j...@samsung.com] 
> Subject: session sharing in Tomcat v7.0

> When I created 2 webapps in 1 host and I wanted to get these 2 webapps 
> to use 1 session.

This is specifically prohibited by the servlet spec (which you should read):

"7.3 Session Scope

"HttpSession objects must be scoped at the application (or servlet context) 
level. The underlying mechanism, such as the cookie used to establish the 
session, can be the same for different contexts, but the object referenced, 
including the attributes in that object, must never be shared between contexts 
by the container."

You need to provide your own mechanism to keep track of common data, outside of 
the session object.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to