Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question