Sunday, February 28, 2016

getCookie() always returns null

Can anybody tell me why my cookie is null ?

Cookies.setCookie(ApiParameters.LOGIN_COOKIE, sessionId, expires, null, "/", true);  String cookie = Cookies.getCookie(ApiParameters.LOGIN_COOKIE);    if(cookie == null) {      throw new RuntimeException("Cookie is 'null'.");  }

It used to work a few hours ago. Chrome says the cookie is actually there but getCookie() returns always null. What am I doing wrong here?

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment