语言

Menu
Sites
Language
Clear browser cookies

Hi,

I need to open native tizen web browser EVERYTIME with Facebook login page from my tizen web application. The problem ist that the user remains logged in (if he did not log out manually). Is it possible to clear browser cookies before launching application service from web application?

Thanks for your help.

Jan

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

响应

5 回复
Lakshmi Grandhi
Hi Jan Macura, There are c++ methods to clear cookies https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Web_1_1Controls_1_1IJavaScriptBridge.html Tizen::Net::Http::HttpCookieStorageManager::RemoveAllCookies. To access c++ code form javascript you need to creative Plugin. There is a sample webapplication how to call native c++ code NPPluginMatrix. If you need more information how to creative plugin kindly post in native programming forum.
Jan Macura
Hi, does it mean that I should be able to remove native tizen browser cookies? Jan
Lakshmi Grandhi
Yes Macura, native apps has support to clear cookies, take care how to call native app methods in WebApplication
Jan Macura
Just to be sure that you understood me correctly. I have a Tizen WEB application. From my application I need to open native Tizen web browser. For this I use: var service = new tizen.ApplicationService('http://tizen.org/appcontrol/operation/view', url, null); tizen.application.launchService(service, 'org.tizen.browser', onSuccess, onError, serviceReply); And I need to open facebook login page, so I need to clear cookies of tizen browser. So IS THIS POSSIBLE? Thanks, Jan
Lakshmi Grandhi
Yes it should be possible before launching native web browser, clear the cookies using c++ code, but how to call c++ code in web application, kindly check in "native programming" forum.