Commit 9f7bd831 authored by Daniel Pyrathon's avatar Daniel Pyrathon Committed by Tim Graham
Browse files

[1.6.x] Fixed #22242 -- Documented common cookie size limit.

Backport of 885e7adf from master
parent 1a2939bc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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