On Mar 25, 11:39 am, tdk <[email protected]> wrote:
> I would like to set a Cookie on my client which never expires, how do
> I do that?

Don't.
Expire in a year from now, two eventually, but there's no point in
"never ever expiring".

> I tried setting a date, but when I check the cookie, it always says:
> "Expires: At end of session":
>
>                 Cookies.setCookie("continuityUser",
> loginContext.getUsername(), new Date(Long.MAX_VALUE));

new Date(Long.MAX_VALUE) might result in an invalid date (way too far
in the future) or a past date (overflow).

-- 
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.

Reply via email to