Skip to content

Commit

Permalink
Fix same_site→samesite in tutorial:set_cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero authored and defnull committed Jan 3, 2024
1 parent 99341ff commit 3fdb8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Expand Up @@ -420,7 +420,7 @@ The :meth:`Response.set_cookie` method accepts a number of additional keyword ar
* **path:** Limit the cookie to a given path (default: ``/``)
* **secure:** Limit the cookie to HTTPS connections (default: off).
* **httponly:** Prevent client-side javascript to read this cookie (default: off, requires Python 2.7 or newer).
* **same_site:** Disables third-party use for a cookie. Allowed attributes: `lax` and `strict`. In strict mode the cookie will never be sent. In lax mode the cookie is only sent with a top-level GET request.
* **samesite:** Disables third-party use for a cookie. Allowed attributes: `lax` and `strict`. In strict mode the cookie will never be sent. In lax mode the cookie is only sent with a top-level GET request.

If neither `expires` nor `max_age` is set, the cookie expires at the end of the browser session or as soon as the browser window is closed. There are some other gotchas you should consider when using cookies:

Expand Down

0 comments on commit 3fdb8b2

Please sign in to comment.