Shared Cookies between WebView and HTTPClient?

Posted by Arpit on Stack Overflow See other posts from Stack Overflow or by Arpit
Published on 2010-05-20T22:53:50Z Indexed on 2010/06/17 18:13 UTC
Read the original article Hit count: 744

Filed under:
|
|

An Android app I am building requires web authentication for users to make data calls. In Adobe AIR and later the iPhone, we did this by rendering a login page in a webview-equivalent page and setting a cookie when the user signs in. Subsequent data calls use the same Cookie Jar and so are seen as authenticated.

In the Android version, I authenticate the user using a WebView and then once thats done, I make a data call using DefaultHttpClient, however I cant seem to load the data on the second call.

Is there some cookie gotcha I am missing? I imagine the HTTPClient and WebView would share the same Cookie space. Am I wrong?

© Stack Overflow or respective owner

Related posts about android

Related posts about webview