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.
Here is my web.xml
session for cookie:
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<path>/</path>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
My webapp's URL similars to this:
http://app-external-dev-4823.appcloud-np.mycompany.com/APPExternal/
The generated cookie is this:
Set-Cookie: JSESSIONID=8A46BC24370545E9885E67D050F25984.Tomcat7-rhel7; Version=1; Path="/"; HttpOnly
I read that Internet Explorer has problems with DNS URL using _
, but this is not the case.
Comparing the response header for both Google Chrome and Internet Explorer, I could not find anything awkward
Google Chrome:
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
Internet Explorer:
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
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.