[1.8.x] Fixed #25125 -- Updated docs on cookie naming conventions.

Thanks Tim Graham for the review and kezabelle for the report.

Backport of 2f6bdab159 from master
This commit is contained in:
Konrad Świat 2015-07-16 23:38:44 +02:00 committed by Tim Graham
parent 395b33a538
commit 7355437e49
1 changed files with 6 additions and 5 deletions

View File

@ -388,7 +388,8 @@ CSRF_COOKIE_NAME
Default: ``'csrftoken'`` Default: ``'csrftoken'``
The name of the cookie to use for the CSRF authentication token. This can be The name of the cookie to use for the CSRF authentication token. This can be
whatever you want. See :doc:`/ref/csrf`. whatever you want (as long as it's different from the other cookie names in
your application). See :doc:`/ref/csrf`.
.. setting:: CSRF_COOKIE_PATH .. setting:: CSRF_COOKIE_PATH
@ -1718,8 +1719,8 @@ LANGUAGE_COOKIE_NAME
Default: ``'django_language'`` Default: ``'django_language'``
The name of the cookie to use for the language cookie. This can be whatever The name of the cookie to use for the language cookie. This can be whatever
you want (but should be different from :setting:`SESSION_COOKIE_NAME`). See you want (as long as it's different from the other cookie names in your
:doc:`/topics/i18n/index`. application). See :doc:`/topics/i18n/index`.
.. setting:: LANGUAGE_COOKIE_PATH .. setting:: LANGUAGE_COOKIE_PATH
@ -3061,8 +3062,8 @@ SESSION_COOKIE_NAME
Default: ``'sessionid'`` Default: ``'sessionid'``
The name of the cookie to use for sessions. This can be whatever you want (but The name of the cookie to use for sessions. This can be whatever you want
should be different from :setting:`LANGUAGE_COOKIE_NAME`). (as long as it's different from the other cookie names in your application).
.. setting:: SESSION_COOKIE_PATH .. setting:: SESSION_COOKIE_PATH