S
S
serzhb2013-04-15 09:57:54
iPhone
serzhb, 2013-04-15 09:57:54

iOS Cookie Policy

Hello!
Faced a problem.
On iPhones / iPads / iPods, by default, there is a mode in which cookies in Safari are accepted only from visited sites.
Accordingly, since we provide add-ons for sites that are widgets loaded from our servers, add-ons and cookies are not installed when loading our scripts.

In the "always" mode of receiving cookies, of course, they are set, but for this, the client must have this option enabled on the phone. It is natural to ask site visitors to turn it on is a disastrous thing. Are there any ways to get around this limitation? Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
egorinsk, 2013-04-15
@egorinsk

If such a setting is made in the browser, it is done for a very specific purpose (although, of course, as a way of maintaining privacy is very illogical). Instead of. to try to get around it, store your data in localStorage, for example.

D
deadkrolik, 2013-04-15
@deadkrolik

We encountered this when working with mamba , when it was necessary to put applications inside the frame. In the same place he described the lack of a solution:

Get ready for safari challenges on iOS and iPad. By default, no cookies are stored inside the frame. In fact, this is a privacy policy, and there is no way around it . The only way out is to determine that the cookie was not set and redirect the user to a special page where they explain how to change the security policy. This question is only relevant if you need sessions in your application.

It really can't be bypassed at all. Only ask the person himself to enable or pass the session through the url.

I
iStyx, 2013-04-16
@iStyx

Create a hidden frame in which you POST to your site, which should set the cookie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question