I am attempting to set a cookie for a user; however, it does not seem to be retained by the browser. I have tried all 3 major browsers.

Here is the relevant code:

@Inject
private Cookies cookies;

private void setCookies()
{
  String value = "test";
cookies.writeCookieValue(Constants.COOKIE_NAME, value, "/", "localhost");
}

Has anyone had any problems with cookies or know of any problems?

One more thing, I am doing all of this from within an onSetupRender within a component.

Thanks in advance,

Keith


Reply via email to