Hi all,
Just been pondering my head over this piece of code.
Date expires = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 *
30));
Cookies.setCookie("token", "token", expires);
Cookies.setCookie("secret", "secret", expires, "localhost", "/",
true);
Cookies.setCookie("uname", "ram", null);
Can anyone correct me. First two calls completely fail to set
cookies, last one does set it but expiry time is set to
current browser session. (looking at googles test code for last call
should have set to never expire)
Cheers!
--
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.