Subject: | SEND_COOKIE only works after session() is called. |
The documentation for SEND_COOKIE was not clear that the cookie is not automatically added to the headers unless I call session().
Perhaps this could be solved nicely with a teardown() hook, which checks to see if a cookie header needs to be added.
The docs for SEND_COOKIE should perhaps also mention that session_cookie() needs to be imported to work, even if the user is not accessing it directly.