Open a Link WITHOUT Cookies?

I use KLWP to open a link to an IOT device’s page which has several “tabs” of information. When I open it, I want to always go to the first tab. But the IOT device’s web server always “remembers” which tab was last opened/used and returns to it the new time I open the page.

I have determined that this is done because the web server drops a cookie with the page that contains the last page used information. If I clear that cookie and re-open, I always get sent to the first tab.

So my question is: how can I get rid of this cookie when using the Open Link on a touch event? Or is there a way to otherwise clear this cookie before I open the link?

Perhaps if I could open in private/incognito mode?

Thanks

Hi there,

I have a tips on clearing web cookies, though it may not be a perfect solution.

SOLUTION 1
Send an intent data:
android.webkit.ACTION_CLEAR_COOKIES

SOLUTION 2
Run a SHELL command to remove the cookies from any specific app:

Example: the package name is com.android.chrome
rm -rf /data/data/com.android.chrome/app_chrome/cache/Cookies

I hope this would help.
:smiling_face::+1:

1 Like

Thanks. I will check that out.

I need to figure out how to send the intent inside of Kustom. Perhaps using chrome intents.

I am sure that the rm command will require root - which I have but would prefer to avoid.

BTW - I finally realized that the IOT device in question is open source. I was able to find the cookie’s use in the HTML and removed it. That solved the problem. Best

1 Like

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.