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

Java Development

Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

How to clear the cookies of BrowserField2



I am using the BrowserField2 with BrowserFieldConfig cookiee property set to true. On button click i am loading a particular url in BrowserField it opens properly as expected now if i close browserfield and again i open it by clicking the button it redirect me to some other url, the server side peoples says it due to cookies of previous page.


So now i want to clear the cookies of browserfield before starting it. One more thing it seems that browserfield screen is popped out from Ui Stack but still it maintains the cookies, how to clear all cookies.



Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: How to clear the cookies of BrowserField2



Cookies are sent in the headers of the request so you can try and control the headers using the requestContent(..) functions of the browserField.


Hope that helps,