What does the crossContext attribute do in Tomcat? Does it enable session sharing?

You can share sessions between web applications by using a Single Sign-On Valve. You would set crossContext=true if you wanted to share some information between different Web Applications in the same Virtual Host. For example app1 would call: setAttribute(“name”, object); and another app could call getContext(“/app1”).getAttribute(“name”); to read the information. If crossContext wasn’t set to … Read more