-
1. Re: Wildfly is overriding cookie values if the cookie name is same.
jaikiran Jun 14, 2017 11:07 PM (in response to venkatesh2286)What exactly do you mean by overriding the cookie? Post any relevant code where you are dealing with cookies. Which exact version of WildFly are you on?
-
2. Re: Wildfly is overriding cookie values if the cookie name is same.
venkatesh2286 Jun 14, 2017 11:16 PM (in response to jaikiran)I am using version 9.0.0.FINAL
Here is the sample code
Cookie c= new Cookie("name", "value1");
c.setPath("/path1");
c.setMaxAge(-1);
response.addCookie(c);
Cookie b= new Cookie("name", "value2");
b.setPath("/path2");
b.setMaxAge(-1);
response.addCookie(b);
I am expecting 2 cookies in the browser Since the path is different. But i see only one cookie in the browser with value2.
-
3. Re: Wildfly is overriding cookie values if the cookie name is same.
pferraro Jun 16, 2017 7:53 AM (in response to venkatesh2286)https://tools.ietf.org/html/rfc6265#section-4
"Servers SHOULD NOT include more than one Set-Cookie header field in the same response with the same cookie-name."