title: Why Internet Explorer is not sending jsessionid cookie on request header?
body: <p>I'm working on a migration from Oracle iPlanet Web Server to Apache Tomcat, on OpenShift containers. Our webapp is a Apache Struts 2.5, doesn't use Spring Framework. The problem is: for some reason, session is not working, and is not working only in Internet Explorer. Tested on Mozilla Firefox, Google Chrome and Apple Safari and it works just fine, only Internet Explorer faces the issue.</p>
  
  <p>Here is my <code>web.xml</code> session for cookie:</p>
  
  <pre><code>&lt;session-config&gt;
      &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;cookie-config&gt;
          &lt;path&gt;/&lt;/path&gt;
      &lt;/cookie-config&gt;
      &lt;tracking-mode&gt;COOKIE&lt;/tracking-mode&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>My webapp's URL similars to this:</p>
  
  <p><a href="http://app-external-dev-4823.appcloud-np.mycompany.com/APPExternal/" rel="nofollow noreferrer">http://app-external-dev-4823.appcloud-np.mycompany.com/APPExternal/</a></p>
  
  <p>The generated cookie is this:</p>
  
  <pre><code>Set-Cookie: JSESSIONID=8A46BC24370545E9885E67D050F25984.Tomcat7-rhel7; Version=1; Path="/"; HttpOnly
  </code></pre>
  
  <p>I read that Internet Explorer has problems with DNS URL using <code>_</code>, but this is not the case.</p>
  
  <p>Comparing the response header for both Google Chrome and Internet Explorer, I could not find anything awkward</p>
  
  <p>Google Chrome:</p>
  
  <pre><code>Cache-control:private
  Content-Language:en-US
  Content-Type:text/html;charset=ISO-8859-1
  Date:Fri, 18 May 2018 12:08:07 GMT
  Server:
  Set-Cookie:JSESSIONID=3DC79F0159A3D3324658BD0A644BDE51.Tomcat7-rhel7; Version=1; Path="/"; HttpOnly
  Set-Cookie:c4a1aaf48f2245d1880a957d46993e21=8fa84cd57f198140fc034497aab55b2a; path=/; HttpOnly
  Set-Cookie:np_cookie=1479619875.20480.0000; path=/
  Transfer-Encoding:chunked
  </code></pre>
  
  <p>Internet Explorer:</p>
  
  <pre><code>Response    HTTP/1.1 200 OK
  Set-Cookie  JSESSIONID=3EF94406ED000ACD13A77958B424DDEC.Tomcat7-rhel7;     Version=1; Path="/"; HttpOnly
  Content-Type    text/html;charset=ISO-8859-1
  Content-Language    en-GB
  Transfer-Encoding   chunked
  Date    Fri, 18 May 2018 12:06:36 GMT
  Server  
  </code></pre>
  
  <p>I'm really pulling my hair out here, in big chunks. I've tried to change the domain of the cookie, the path, httponly and secure properties, with no change. It works perfectly fine running on Apache Tomcat locally, by the way.</p>