dcsimg

Is there a simple way to share a single Session object across multiple ServletContexts?

Serge Knystautas

No, servlet sessions are purposefully designed to not be shared across servlet contexts as this is viewed as a security risk. The Servlet 2.3 spec supports listening for events such as session creation and destruction, so you could handle sharing session information across different contexts this way.