I get almost crazy with GWT Cookies,
in one of my applications, I set the cookie to RPC success, but I try to find it elsewhere in my application, it returns null.
I know that when setting a variable in rpc sucess, if we try to access it elsewhere, it returns null, so how can I set a cookie as rpc so that it does not return null?
Edit: - I am doing something like this:
I do in Main.java
RPC.getUserDetails(new AsyncCallback <String>())
{
public void onSuccess(String result)
{
Cookies.set("UserDetails",result);
}
}
Now in another .java file, when I do Cookies.get("UserDetails"), I get null
source
share