title: How do I get a servlet container to read JSESSIONID from the query string rather than from the URL
body: <p>I need to be able to maintain a session by having the JSESSIONID specified as a parameter of the query string of the url rather than part of the URL itself.</p>
  
  <p>I other words I need to maintain a session like this</p>
  
  <p><a href="http://myserver.com?jsessionid=A463B23BC4F2342FA" rel="nofollow">http://myserver.com?jsessionid=A463B23BC4F2342FA</a></p>
  
  <p>rather than</p>
  
  <p><a href="http://myserver.com;jsessionid=A463B23BC4F2342FA" rel="nofollow">http://myserver.com;jsessionid=A463B23BC4F2342FA</a></p>
  
  <p>For a servlet container I'm using both tomcat 6.0 and weblogic 10.3</p>
  
  <p>Reason:</p>
  
  <p>I'm creating a Google Earth network link which requires me to keep a session for the requests a client makes.  Google Earth doesn't support cookies and it appears there is no way to change the url that it uses to make requests.  I can only tell it to append a query string parameter on subsequent requests by adding the following to the kml in my server responses</p>
  
  <pre><code>&lt;NetworkLinkControl&gt;
      &lt;cookie&gt;JSESSIONID=A463B23BC4F2342FA&lt;/cookie&gt;
  &lt;/NetworkLinkControl&gt;
  </code></pre>