Skip to content

Commit

Permalink
[1.6.x] Fixed #22242 -- Documented common cookie size limit.
Browse files Browse the repository at this point in the history
Backport of 885e7ad from master
  • Loading branch information
PirosB3 authored and timgraham committed Mar 16, 2014
1 parent 1a2939b commit 9f7bd83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/ref/request-response.txt
Expand Up @@ -735,6 +735,14 @@ Methods

.. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly

.. warning::

Both :rfc:`2109` and :rfc:`6265` state that user agents should support
cookies of at least 4096 bytes. For many browsers this is also the
maximum size. Django will not raise an exception if there's an attempt
to store a cookie of more than 4096 bytes, but many browsers will not
set the cookie correctly.

.. method:: HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=True)

Like :meth:`~HttpResponse.set_cookie()`, but
Expand Down

0 comments on commit 9f7bd83

Please sign in to comment.