YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Good Uses for Cookies Solution - Web Development

Get Embed Code
2 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  1. Okay, so, now I know this is kind of a subjective
  2. quiz, but here are the answers I was looking for. Storing login
  3. information. This is something, you know, I just mentioned previously. That's a
  4. really common use of cookies. So when you log into a website,
  5. the web server gives you a cookie, and that identifies you for
  6. future requests. Storing small amounts of data to avoid hitting a database.
  7. Yes, this is another kind of handy little thing. You know, if
  8. you've just got a small piece of data that you want to store.
  9. You know it, it's, it's temporary. It's small. You don't need to
  10. have all the infrastructure of a database to store it. And have
  11. to you know hit your database on every request to retrieve it.
  12. That sort of thing. Especially if it's, it's, if it's you know,
  13. anonymous data. You know, data you don't mind losing. Because a user
  14. can of course clear all the cookies out of their browser or
  15. you know, a browser may not have cookies enabled at all. Storing
  16. user preference info. no, this is not a good use of cookies.
  17. At least in the notion of a user as we've
  18. been kind of talking about where, you know, you might log
  19. into a website and you have these preferences. This is
  20. because you want the data to survive. Now, cookies can be
  21. erased at any time. A user can change browsers, they
  22. can go to a different machine, and the cookies don't, you
  23. know the cookies are specific to one browser. And as long
  24. as the user allows them to be there. So data like
  25. user preferences that you want to exist until a
  26. user changes them on your website Shouldn't be stored in
  27. cookies and tracking you for ads. This is unfortunately maybe
  28. not a a good use more of an appropriate use
  29. because tracking you for ads isn't really inherently a
  30. good thing, but its a really common use of cookies.
  31. You go to a website, you may find yourself with
  32. 20 cookies that are tracking you for different ad providers.
  33. And in fact, I had a friend that worked for an ad tracking company for a while
  34. and these transfers are kind of related. They used
  35. to joke that they had the world's largest database
  36. stored in users' browsers all across the internet.
  37. They had like, many hundreds and thousands of, of
  38. terabytes of data. In theory stored you know, a
  39. few hundred bytes at a time, in users' cookies.
  40. Because they powered a lot of really big ad networks.
  41. Cookies, and we'll come back to a little bit how ad
  42. networks work. I think it's, it's interesting to understand. That cookies
  43. are a critical technology for tracking you for for advertising purposes.