posted 10 years ago
In the HTTP Cookie environment, you can set the the Domain so that the cookie is passed to any host within that domain. However, I do not know that you can do the same for the HttpSession object.
If you need to pass data between servers, you may need to look at other forms of persistence rather than HttpSession. If it is a small amount of non-sensitive data, you might consider rolling your own Cookie object to hold the data. If it's a lot of data, or it's data that must remain secure, I would look towards another form of persistence, such as a database.
OCPJP
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower