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.

inside custom component

Native Development

Reply
Developer
Posts: 93
Registered: ‎08-18-2011
My Device: 9550
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
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: clear all cookies from WebView

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

Developer
Posts: 93
Registered: ‎08-18-2011
My Device: 9550
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