Dedicated GeckoView CookieManager and Cache Storage?
tonyofrancis opened this issue · 8 comments
Thanks for providing the Android community with such a wonderful alternative! I have been working on a project that needs GeckoView!
My question is: Does GeckoView support the case where a user can be signed into a domain account (gmail for example) in one GeckoView, and sign into another gmail account in a different GeckoView. Both GeckoView instances should NOT share account information such as cookies caches and other data that might identify the accounts.
Each GeckoView would in theory have their own CookieManager and caches. Is this possible?
Thanks!
Hi @tonyofrancis , yes we do support that. Just set a custom contextId
on the session for each account and GeckoView will separate cookies, session storage, etc. https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoSessionSettings.Builder.html#contextId-java.lang.String-
Thanks!
Hi @tonyofrancis , yes we do support that. Just set a custom
contextId
on the session for each account and GeckoView will separate cookies, session storage, etc. https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoSessionSettings.Builder.html#contextId-java.lang.String-
How to delete unused contextId folder from app data to reduce app data size ?