title: Disable jsessionid via http header (cookie) in Tomcat 7
body: <p>I'm looking to disable jsessionid from being used in the https headers.
  Is there a way to turn this off or disable this being set as a cookie in tomcat 7?</p>
  
  <p>I either want the jsessionid to arrive embedded into a GET method url name value pairs or to be part of a POST request name value pairs.</p>
  
  <p>I know all the advantages and disadvantages of using cookie based sessioning and url rewriting but I have specific needs for specific impl of restful web services.</p>
  
  <p>I need tomcat 7 to accept jsessionid without using the http header: jsessionid.</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>so I looked around some more and found <a href="http://java.sun.com/javaee/6/docs/api/javax/servlet/SessionTrackingMode.html" rel="nofollow">this</a> which is implemented using the web.xml conf.<br>
  However the following doesn't seem to work with Tomcat 7.  </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;session-config&gt;
      &lt;tracking-mode&gt;URL&lt;/tracking-mode&gt;
  &lt;/session-config&gt; 
  </code></pre>
  
  <p>is it a case of TC7 not fully implementing the servlet 3.0 spec?</p>