R
R
Ramzesh Halifionakis2020-03-09 13:18:33
css
Ramzesh Halifionakis, 2020-03-09 13:18:33

How to safely transfer information from one site to cookies of another?

Good day!

Please, tell me how to solve the problem?

There are two different sites ("A" and "B") on different domains. On site "A", the user selects the product he wants to purchase.
After choosing a product, he clicks "checkout" - and he will be redirected to site "B", where he is already paying for the goods. When switching from "A" to "B", only the name of the product, price and quantity are transmitted.
There is an authorization on the site "B", so the product data must be stored (in cookies?) for a while until the user logs in.
What solutions can you offer?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor K, 2019-07-30
@vuldozer

Unclear. This one, what is it?

R
Robur, 2020-03-09
@Robur

generate a link to B in which all the necessary parameters, B receives them from there when loading the page and saves them where necessary (session on the server, cookies, localstorage)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question