一个Tomcat中有多一个web应用,然后想共享session,只需在host中加上 <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> 登录一个应用后,其他的应用就不需要登录了