I have added the following configuration in my webapp application web.xml
<session-config>
<cookie-config>
<path>/</path>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
When I start my application, I send an http request to set this cookie and I can see it in the http response with path /, Secure and httpOnly.
However, I can't see this cookie being sent inside the following http requests and hence, if I do request.getSession().getId() for the following requests, I get an empty string.
I tried adding the following to my tomcat 8.5 context and also the WAR context
<Context sessionCookiePath="/">
but it did not fix the issue.
Does that mean that the JSESSIONID cookie is not being secure and hence ignored to be sent within the requests?