I am using Gwt-2.5.1,
I am setting sessionId to cookies using com.google.gwt.user.client.Cookies.setCookie(.....) API.
For this I used following code.
String baseDomain = com.google.gwt.user.client.Window.Location.getHostName();
Date cookieDate = new Date();
cookieDate.setDate(cookieDate.getDate() + 1);
Cookies.setCookie("sessionId", LoginInfo.getSessionId(), cookieDate, baseDomain, "/", false);
Issue : Cookie is not able to create for the following scenario:
If host URL contains DNS Name :
Ex: http://SampleApps:8085/MyApp/
I have not seen any cookie named as "sessionId".
Note : Cookie is created for the following scenario:
Ex: http://172.29.241.222:8085/MyApp/
I can see the cookie named as "sessionId"
Please give me a solution to create a cookie in both scenarios successfully.
Thanks & Regards,
Rammohan
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment