phonegap: cookie based authentication (PHP) not working [webview]

前端 未结 4 1052
萌比男神i
萌比男神i 2020-11-29 17:39

I\'m working on a mobile web-app using sencha touch, HTML5 and phonegap as a wrapper.

I\'m using PHP-Authentication (Cookie) and ajax-requests. Everything works fin

4条回答
  •  渐次进展
    2020-11-29 17:50

    Best ways to store get and delete cookie its working fine in my app which is on live

    To store value in cookie

    window.localStorage.setItem("key", "value");
    

    To Get value in cookie

    var value = window.localStorage.getItem("key");
    

    To Delete cookie value

    window.localStorage.removeItem("key");
    window.localStorage.clear();
    

提交回复
热议问题