I am becoming almost mad with the GWT Cookies,
in one of my application I set the cookie in an RPC success, but I am
trying to retrieve it in another place of my application, it returns
null.
I know that when setting a variable in an rpc sucess,if we try to
access it elsewhere it result null, so how can i set a cookie an rpc
so that it does not returns 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 file.java, when i do Cookies.get("UserDetails"), I get
null
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.