Class 11 Prep Review

Here are some review questions for you to solidify your knowledge of the concepts covered in this class:

  1. Since HTTP is stateless, how is state preserved across requests?

  2. What data type does request.cookies.get() return?

  3. Describe how cookie-based sessions work in Flask.

  4. Can you set a cookie for a different domain?

  5. If you do not set an expires parameter when will your cookie expire?

  6. Define a cookie and describe why they are useful.