This content has been marked as final.
Show 1 reply
-
1. Re: Cookie path setting seemed ignored
fregnaut1 Sep 21, 2018 5:00 AM (in response to fregnaut1)Last minute !
I found the problem, it was in my code :
cookie.setPath("/mypath; HttpOnly");
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
cookie.setPath("/mypath");
cookie.setHttpOnly(true);
and it works as expected !