简体   繁体   中英

When cookie disabled nothing appearing on GWT root panel

i am working on GWT cookies. I was checking whether the cookie is enabled or not and if not enabled to show gwt popup for which i have written following code:

 if(Cookies.isCookieEnabled())
 .....
 else
 Window.alert("please enable cookies");

but when i disable the cookies in browser and try to run the code nothing is appearing? please can some one suggest me the possible cause for this issue and the solution to fix this?

Thanks.

捕获异常并弹出消息,就好像cookie被识别时被禁用一样。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM