Issue with Codeigniter sessions on Iphone

后端 未结 1 430
Happy的楠姐
Happy的楠姐 2020-12-22 11:30

My authentication uses CI sessions and works fine everywhere that I have checked. I just noticed that on the iPhone I can only login if I clear all cookies and data from the

相关标签:
1条回答
  • 2020-12-22 12:19

    Having looked around it appears that the cause is safari on the iphone caching Ajax requests. Nothing to do with sessions at all. Adding a timestamp to my ajax request solved my issue.

    var timestamp = new Date().getTime();
    

    Off I go through all my js files looking for $.ajax :)

    0 讨论(0)
提交回复
热议问题