You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Randy Lau (JIRA)" <ji...@apache.org> on 2014/05/11 00:15:40 UTC

[jira] [Created] (CB-6665) Can't access cookies in response/request headers for Android WebView

Randy Lau created CB-6665:
-----------------------------

             Summary: Can't access cookies in response/request headers for Android WebView 
                 Key: CB-6665
                 URL: https://issues.apache.org/jira/browse/CB-6665
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
            Reporter: Randy Lau


I am having trouble configuring the Android WebView to access the "Cookie" header in my HTTP requests/responses.  On my iOS implementation, I am using localStorage to grab the cookie from a response header and storing it for persistent session management.  (When accessing my server from a mobile browser, I can see the "Cookie" in the request header, but when accessing it via the Cordova app, the "Cookie" header isn't there.)

I've had some unsuccessful attempts for the past few hours/days with these approaches below (and several others).  I have relatively little knowledge of the Android SDK so I might be missing something.

http://blog.winfieldpeterson.com/2013/01/17/cookies-in-hybrid-android-apps/
http://stackoverflow.com/questions/1652850/android-webview-cookie-problem
http://stackoverflow.com/questions/11083160/how-to-enable-cookies-for-android-phonegap-1-8-0-app

My cookies aren't set to HttpOnly, and they expire.  I am currently using Cordova 3.4.0 with an Android 4.4 device.  Haven't yet tested other Android OS to see if it's a problem on other versions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)