Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear cookies in ChromeCustomTabs?

I'm implementing login to application via ChromeCustomTabs. I don't need to keep the session - vice versa, I need to ask user for login on every launch of app. How can I clear the cookies of ChromeCustomTabs?

like image 641
E I Avatar asked Oct 15 '25 12:10

E I


1 Answers

The one of the main ideas of CromeCustomTabs are shared cookies with Chrome browser, so the user will be able easily to use its "saved data" (credentials, etc.) in opened from your application tab. It means that you cannot clear cookies that are used by ChromeCustomTab.

If you want to have more control of the cookies in particular, you should consider using WebView instead.

like image 79
Demigod Avatar answered Oct 18 '25 04:10

Demigod