B
B
Big_Trouble2020-10-05 15:14:02
PHP
Big_Trouble, 2020-10-05 15:14:02

What is the best way to generate PHP or Javascript cookies?

I decided to make a small online store, since it is small, I see no reason to create a registration system on the site. I plan to create a "Wish List on the site", and store the goods that the user has saved in cookies, in connection with this, the question arose of how best to generate cookies using PHP or Javascript? Will it somehow affect the security or speed of work, depending on the chosen method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Gorelov, 2020-10-05
@Big_Trouble

Depending on the situation.
If you need to do a preliminary check, some kind, then I work on the side of the backend.
If no checks need to be done, then I add from the client side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question