mirror of
https://github.com/simonw/datasette.git
synced 2026-05-28 04:46:18 +02:00
blacken-docs
This commit is contained in:
parent
341a488db0
commit
2704bc9c61
1 changed files with 3 additions and 1 deletions
|
|
@ -1212,7 +1212,9 @@ To include an expiry pass ``expire_after=`` to ``datasette.set_actor_cookie()``
|
|||
.. code-block:: python
|
||||
|
||||
response = Response.redirect("/")
|
||||
datasette.set_actor_cookie(response, {"id": "cleopaws"}, expire_after=60 * 60 * 24)
|
||||
datasette.set_actor_cookie(
|
||||
response, {"id": "cleopaws"}, expire_after=60 * 60 * 24
|
||||
)
|
||||
|
||||
The resulting cookie will encode data that looks something like this:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue