I have been using Cookies.setCookie() in my GWT app. The bad behavior only happens on Firefox. On Safari, things work as expected.
If I do this: Date IN_THE_FUTURE = new Date(); IN_THE_FUTURE.setTime( IN_THE_FUTURE.getTime() + (1000L * 60L * 60L * 24L * 365L * 20L) ); // 20 years in future Cookies.setCookie( "name", "Bart Simpson", IN_THE_FUTURE, null, "/", false ); Things seem to work properly. Date IN_THE_FUTURE = new Date(); IN_THE_FUTURE.setTime( IN_THE_FUTURE.getTime() + (1000L * 60L * 60L * 24L * 365L * 500L) ); // 500 years in future Cookies.setCookie( "name", "Bart Simpson", IN_THE_FUTURE, null, "/", false ); The date seems to get set to a date in the early 20th century. Any idea what is wrong? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
