Since Wildfly 11, when I set the cookie path of my own cookie (not the session one), it seemed ignored : The cookie is created, but with the 'default path' corresponding to the web-app path
I set the cookie path in java with this simple code :
Cookie cookie = new Cookie(cookieName, value);
But my cookie is created with the default path of the web-app
Is it a new setting , something i can change ?
Last minute !
I found the problem, it was in my code :
This worked ok with javax.servlet 2.5.
But, wildfly 11+ must use javax.servlet 3.0 and there's now a separate property for the httpOnly option
So the code becomes now
and it works as expected !