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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact