duanhe1976 2014-06-17 05:47
浏览 63

移动HTML5应用程序的会话管理

I am working on an app using html5, javascript and jquery in the front-end and PHP in the back-end. I am returning all the data to the front-end in form of json.

I have to port this entire front end to a android application using phonegap

The problem I am facing is this:
In the web environment, the cookies are stored on the client side automatically using PHP which helps in managing the sessions. How can I manage sessions in my phonegap application?
Can I store cookies like I can do on a website? If yes, then how? if No, then what's the alternative?

  • 写回答

1条回答 默认 最新

  • dsstjqsr631426 2014-06-17 10:14
    关注

    For Android I guess you can. but as iOS strongly discourage cookies, I think you would better off with HTML5 LocalStorage and Sessionstorage.

    http://docs.phonegap.com/en/edge/cordova_storage_storage.md.html

    评论

报告相同问题?

悬赏问题

  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据