cookie.setDomain("www.gateway.com");
cookie.setMaxAge(60*60*24*30);
response.addCookie(cookie);
I added a cookie to response.
and the Set-Cookie, also exists in the response returned by the page request, but the browser does not add the secondary Cookie locally. It was also not found in the console application.
Set-Cookie: token=0b31cb951caa48fdbd06eb4f1b8a132e; Max-Age=2592000; Expires=Wed, 25-Jul-2018 13:00:51 GMT; Domain=www.gateway.com
is this a browser security issue? Or is there a problem with Java setting Cookie?