Can anybody tell me why my cookie is null 
<https://stackoverflow.com/questions/35685532/why-is-my-cookie-always-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+unsubscr...@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.

Reply via email to