I am trying to set a simple cookie with a domain, but it seems that it is not being added to the browser cookie store.
This is how I added the cookie
response().setCookie("clientauthtoken", "asdasd", 5000, "/test", "test.com", false, false);
And if I register a cookie manager (a plugin for Firefox to manage cookies), it will not show the cookie I added.
If I register a session, yes, she is there
for (play.mvc.Http.Cookie cockie: response().cookies()) {
Logger.info(" name " + cockie.name());
Logger.info(" value " + cockie.value());
Logger.info(" domain " + cockie.domain());
}
This only happens if I added a domain (test.com). If I set the domain to zero or an empty string and try to add the cookie again, then it will show the browser cookie storage in the session as well. So what am I missing here? Or it is not possible to add a cookie with a domain.
Thank.