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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment