K
K
krut12017-06-09 18:39:38
safari
krut1, 2017-06-09 18:39:38

How to make localstorage, cookies cross-domain in Safari?

Hello. The problem looks like this: the user moves from one site to another (completely different domains). But there is a need to get information about this user: the ID of the goods that he put in the basket.
The solution that we have now is this: we save the data in localstorage, open an iFrame in parallel, and add the same data to the second domain in it. And everything would be fine, but here's the problem: in Safari on iOS, by default, there is an add-on: "Do not accept data from previously unvisited sites." Because of it, he completely refuses to set variables in localstorage. Everything is absolutely the same with cookies :(
Your ideas, gentlemen experts?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-06-09
@BuriK666

save on server side and pass session_id

B
Barmunk, 2017-06-09
@Barmunk

No way, the only legal way, if it's ios, when the product is added to the cart, open a new tab with the desired domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question