Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/iPad WebApps don't allow cookies?

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.

like image 544
Charlie Avatar asked Feb 05 '11 00:02

Charlie


People also ask

Why can't I enable cookies on my iPad?

SAFARI for iOS (iPhone and iPad) Step 1: Go to Settings, then scroll down and select “Safari”. Step 2: Scroll down to “Privacy & Security”. Step 3: Verify “Block All Cookies” is ticked (green/white), click to allow cookies. Step 4: Clear the browser cache and reopen the browser.

Should I allow cookies on my iPad?

As a general rule, we recommend leaving cookies enabled on your iPad — it makes for a much more convenient browsing experience, and the security and privacy advantages of blocking cookies are quite limited.

How do I allow my iPad to accept cookies?

Go to More menu > Settings > Site settings > Cookies. You'll find the More menu icon in the top-right corner. Make sure cookies are turned on.


2 Answers

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

like image 76
hotpaw2 Avatar answered Nov 12 '22 00:11

hotpaw2


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.

like image 25
user1498970 Avatar answered Nov 12 '22 00:11

user1498970