Class 11 Prep Review
Here are some review questions for you to solidify your knowledge of the concepts covered in this class:
-
Since HTTP is stateless, how is state preserved across requests?
-
What data type does
request.cookies.get()
return? -
Describe how cookie-based sessions work in Flask.
-
Can you set a cookie for a different domain?
-
If you do not set an
expires
parameter when will your cookie expire? - Define a
cookie
and describe why they are useful.