Friday, March 25, 2011

Cookies in gwt

hi,
it's possible to have cookies with the same name (with the same gwt-app)
so if i call: Cookies.setCookie("name", "value"), with firebug i  can see there are many cookies with name="name" is sent.
so it's not consitent if server needs only 1 correct info from cookie. i think about calling Cookies.removeCookie("name") before setting it. but 
1. does it remove ALL cookies with this name the client ?
2. will calling Cookies.getCookieNames() return duplicate names or only DISTINC ?

i want to be sure there's only 1 cookie with 1 name on the client ? what would be your suggestion ?

thanx

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment