In my GWT Web Application I want to save some of my app-s data in user's browser cookies. Such as Layout condition, that are changing by user. How can I do this?
Asked
Active
Viewed 366 times
-3
-
2Have you tried anything? – Sednus Feb 05 '13 at 13:29
-
iam tryng gwt lcoal storage. – Lasha Gureshidze Feb 05 '13 at 13:31
-
1Do consider performance impact for your get/post calls as they transmit cookie data on every call!!! – appbootup Feb 05 '13 at 15:06
2 Answers
0
Simple! look at: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Cookies.html
Also take a look at Window object

futuretelematics
- 1,453
- 11
- 23
0
In GWT there is a class
import com.google.gwt.user.client.Cookies;
Is it what you are looking for
//get cookie with name of the cookie
String msg = Cookies.getCookie("cookiename");
//set cookie with name
Cookies.setCookie("cookiename",msg);
Remeber cookie with no value returns null .

Suresh Atta
- 120,458
- 37
- 198
- 307