语言

Menu
Sites
Language
clear, set, and get cookies for Tizen::Web::Controls::Web

Dear All,

  I am looking for a way to clear, set, and get embedded browser cookies, this is necessary for my login flow. However I haven't managed to figure out how to do so. Here is my progress:

1. Tizen::Web::Controls::Web::ClearCookie() seems not working. It returns success, but the page still remembers cookies from the previous app run.
2. I couldn't figure out how to get Tizen::Net::Http::HttpCookieStorageManager from Web, if it is possible. It would do half of what I would like to do.
3. I could have an Tizen::Web::Controls::ILoadingListener, with it, I could watch Set-Cookie headers in OnWebDataReceived. However, it's only a one way ticket, because I see no way to modify outgoing requests to have the Cookie header I'd like.
4. I could set a custom header, so custom cookies with LoadUrl(). This could work for the first load, however, I couldn't handle server redirects with this approach, where the embedded browser's cookie store would kick in. 
5. Clearing, setting cookies with javascript was one of my ideas, but I can't do that before the page is loaded, so it does not really help. 

I would appreciate if you could provide me some directions.

Thanks!
Zsolt
 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

2 回复
muditha murthy
Webkit has pernonalized data. Please refer to the menu of setting of EFL browser 'Clear personnalised data' and ClearFormData(), ClearLoginFormData() of Web class.
Zsolt Szatmari
Thanks! :) Then it seems I have some walls ahead of me but I'll figure something out. Wishes, Zsolt