Make browser cookies available in a webview

android, android-webview, session-cookies, webview

Solution

Is it possible to make the cookies of the default browser available in a webview?

No, sorry.

I want to use a webview for authentification and since the webview uses its own cookie store by default, my users would have to enter their credetials a second time, and that is something I really would like to avoid.

Then either:

- use the `WebView` for the entire experience, or

- use the user's choice of browser for the entire experience, or

- use something other than cookies for session tracking (e.g., `jsession` values in the URL)

Problem

Is it possible to make the cookies of the default browser available in a webview? I want to use a webview for authentification and since the webview uses its own cookie store by default, my users would have to enter their credetials a second time, and that is something I really would like to avoid. [edit] what I forgot to add: I am using google and facebook as openid-providers for the login, and and it is more than likely users are already loggeg in with this account. So in a web-browser they would not be required to enter their credentials, but in a webview they are. And I really think it is bad practice to ask for a google or facebook password in a webview.

Original source

Related problems