Good evening.

What is the advantage of installing / reading cookies in php and javascript?

in which case what is better to use?

    3 answers 3

    And it already depends on the task to be solved - for what use cookies. According to its intended purpose php - server, javascript - client. If you need to store the session so that the user does not have to re-enter the password when connecting to the site (accessing the server), then the choice is for php, and if you use cookies to temporarily store variables that you use for some calculations on the client side javascript.

      Well, you can use when registering for example. So that I did not have to log in a hundred times, check the box "Remember me", there I just used

        There is no advantage, use what you need.