diff options
| author | Osaetin Daniel <osaetindaniel@gmail.com> | 2019-12-11 10:57:13 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-12 10:52:31 +0100 |
| commit | 14e690ae5a6d4ddeb1ac021f78e2e6e333214ef8 (patch) | |
| tree | fe75064e399ed42f12eca88ba63e4b5aad2e54ec /docs | |
| parent | 15c5875e693cc972c996a921560624c355ab8fdd (diff) | |
Doc'd HttpResponse.set_cookie()'s secure argument.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/request-response.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index eada9394bd..e095787363 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -819,6 +819,8 @@ Methods ``domain="example.com"`` will set a cookie that is readable by the domains www.example.com, blog.example.com, etc. Otherwise, a cookie will only be readable by the domain that set it. + * Use ``secure=True`` if you want the cookie to be only sent to the server + when a request is made with the ``https`` scheme. * Use ``httponly=True`` if you want to prevent client-side JavaScript from having access to the cookie. |
