cordova - Cookie based Authentication on Phonegap -


i'm facing problem phonegap cookie based authentication: after force iphone close app (double click on physical button , close), lose cookie established server. how can avoid it? there configuration? or alternative way it?

it works when run first time , error happens when force close app. works on android.

i'm using: iphone - ios 6.1 , cordova 2.5

thanks

i advice abandon cookie solution , instead switch localstorage solution.

ios 6.x has few problems cookie handling , if apple fix problems people still use older version making app unusable on older platforms. cookies archaic technology , there talks ios loose support in future versions.

on other hand localstorage supported on html5 browsers.

you can go further that. there's great js framework called persistance.js. automatically use best storage option device , there 4 different kinds of storage solution.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -