Can someone help me understand cookies? : I apologize if this belongs outside of stackoverflow but I am at wits-end trying to understand internet cookies. 

I have read and completed the tutorials at the following sites:[Whatsmyipadress][1],[w3schools][2],[tutorialspoint][3],[how stuff works][4].

From what I understand - and someone please tell me if I am messed-up, cookies work like:

> client visits site ,
> site requests cookie,
> if cookie does not exist, site creates cookie,

I found this [example][5] and tried to use but everyone has the same name and value:

When I ran tests with different users, everyone returned the same combo `name:bob`

Am I supposed to randomly assign a value? The first link says that users would need to complete a registration-type page and then server would use the info to create an id. This is similar to the tutorial on schools (except their example uses a popup).  Is this what I need to do as well?

How are cookies made unique ? From my experience, i wouldn’t be able to personalize any experience b/c everyone would have the same name/value pair.

  [1]: https://whatismyipaddress.com/cookie
  [2]: https://www.w3schools.com/js/js_cookies.asp
  [3]: https://www.tutorialspoint.com/javascript/javascript_cookies.htm
  [4]: https://electronics.howstuffworks.com/how-to-tech/how-to-surf-the-web-anonymously1.htm
  [5]: https://stackoverflow.com/questions/32353680/how-to-access-browser-session-cookies-from-within-shiny-app