-->

iPhone/iPad WebApps don't allow cookies?

2019-02-21 17:38发布

问题:

When I use <meta name="apple-mobile-web-app-capable" content="yes">, my page doesn't set, load, or retrieve cookies. Is there any way to get around this? I can't find anything useful in Google.

回答1:

UIWebviews don't store cookies. Use HTML5 local storage instead.



回答2:

There is a small bug in the comment on the first line of jquery.cookie.js that iPads don't like.

Change /*! to /* on line 1.