title: Multiple tracking-mode elements within a single session-config element in the web.xml?
body: <p>I am using Tomcat 8.0.35 for my web application. This post </p>
  
  <p><a href="https://www.logicbig.com/tutorials/java-ee-tutorial/java-servlet/session-tracking-mode.html" rel="nofollow noreferrer">https://www.logicbig.com/tutorials/java-ee-tutorial/java-servlet/session-tracking-mode.html</a></p>
  
  <p>says that we can use multiple tracking-mode elements within a single session-config element in the web.xml</p>
  
  <pre><code>&lt;web-app&gt;
      &lt;session-config&gt;
          &lt;tracking-mode&gt;???&lt;/tracking-mode&gt;
      &lt;/session-config&gt;
   &lt;/web-app&gt;
  </code></pre>
  
  <p>I am not able to find the additional information about "multiple tracking-mode elements". What could be Tomcat's behavior if I have the following?</p>
  
  <pre><code>&lt;web-app&gt;
      &lt;session-config&gt;
          &lt;tracking-mode&gt;URL&lt;/tracking-mode&gt;
          &lt;tracking-mode&gt;COOKIE&lt;/tracking-mode&gt;
      &lt;/session-config&gt;
   &lt;/web-app&gt;
  </code></pre>