Using Phonegap-3.0.0 + ios6.1 , on a real iphone, in a real https domain processing a server, many answers from different sources lead me to many trials and failures with session cookies, I still canโt process them correct on the Iphone5+Phonegap app , although everything works fine in Iphone5+Safari .
Sources of Information and Understanding
Cookies-in-PhoneGap . This involves using a different transport mechanism to exchange cookies between clients and the server. Process the cookies on the wire (javascript set:document.cookie=... and get:xhr.getResponseHeader('Set-Cookie') ) and save it in Phonegap-html5-LocalStorage to receive it and reset in the next ajax request.
Iphone and Phonegap . I found this cocoa code in the app>Classes>AppDelegate.m . I donโt think I need to modify it. It seems to be activated by default. My php server is still telling me Your session has timed out, or you have disabled cookies. .
I have been working with this client server for several months in different contexts, I always worked until the phone book appeared in the picture.
Questions
- From web readings, telephone delay should be configured to support cookies. Right or wrong?
- Does Phonegap really handle cookies by default (like when creating a project)?
- Should a developer implement a cookie transport mechanism?
Thanks in advance.
cookies ios6 cordova
Alain
source share