Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
Shwarup
Posts: 92
Registered: ‎08-18-2011
My Carrier: At&T

clear all cookies from WebView

Hi Guys,

I need to clear some or all cookies from WebView before sending a request.

i used bellow code to do it:

m_webView->storage()->clearCookies();

But it is not clearing the cookies.

What is the API i can use to clear this cookies from WebView.

Thanks,

Shwarup Biswas
Please use plain text.
Regular Contributor
JohnWS
Posts: 83
Registered: ‎02-08-2013
My Carrier: verizon

Re: clear all cookies from WebView

maybe m_webView->storage()->clear() helps?

Please use plain text.
Developer
Shwarup
Posts: 92
Registered: ‎08-18-2011
My Carrier: At&T

Re: clear all cookies from WebView

Thanks JohnWS.

 

It is clearing cookies if i call "m_webView->storage()->clearCookies();" or "m_webView->storage()->clear()" method multiple times.

If i call only one time the above method is not clearing cookies.

 

 

Thanks,

Shwarup Biswas
Please use plain text.