title: sessionCookiePath attribute doesn't work on my tomcat7 server
body: <p>I deployed two web applications on my tomcat server, i hope they can share session data between each other. so i add an attribute sessionCookiePath="/" into the Context tag in context.xml file. but after restart the server, it still set the cookie with application path, such as "Set-Cookie: JSESSIONID=7200fce5-8aee-4d95-b4d8-4ab586dba152; Path=/webapp1; HttpOnly"!</p>
  
  <p>The version of tomcat server is 7.047. </p>
  
  <p>Here's the content of my context.xml </p>
  
  <pre><code>&lt;Context sessionCookiePath="/"&gt;&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;&lt;/Context&gt;
  </code></pre>
  
  <p>And here's server.xml</p>
  
  <pre><code>&lt;Server port="8005" shutdown="SHUTDOWN"&gt;&lt;Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/&gt;
  </code></pre>
  
  <p>
    
    
    </p>
  
  <p>
      
    </p>
  
  <p>
      
      
      
        
          
        
        
          
          
        
      
    
  </p>
  
  <p>After that, i tried to fix this problem with web.xml in the applicatoin, added cookie-config tag, but it still doesn't work. </p>
  
  <p>this is web.xml</p>
  
  <pre><code>&lt;web-app id="WebApp_ID" version="2.4"
  xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  &lt;display-name&gt;imeapcore&lt;/display-name&gt;&lt;session-config&gt;
  &lt;cookie-config&gt;
      &lt;path&gt;/&lt;/path&gt;
  &lt;/cookie-config&gt;&lt;/session-config&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.apache.shiro.web.env.EnvironmentLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;filter&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.shiro.web.servlet.ShiroFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;nutz&lt;/filter-name&gt;
      &lt;filter-class&gt;org.nutz.mvc.NutFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;modules&lt;/param-name&gt;
          &lt;param-value&gt;com.imeap.webservice.MainModule&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;nutz&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p></p>