Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
afd375fc
Unverified
Kaydet (Commit)
afd375fc
authored
Kas 01, 2017
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Kas 01, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28741 -- Removed unnecessary leading dot from cross-domain cookie examples.
üst
cbe33491
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
global_settings.py
django/conf/global_settings.py
+1
-1
request-response.txt
docs/ref/request-response.txt
+3
-4
settings.txt
docs/ref/settings.txt
+5
-5
sessions.txt
docs/topics/http/sessions.txt
+1
-1
No files found.
django/conf/global_settings.py
Dosyayı görüntüle @
afd375fc
...
...
@@ -452,7 +452,7 @@ SESSION_CACHE_ALIAS = 'default'
SESSION_COOKIE_NAME
=
'sessionid'
# Age of cookie, in seconds (default: 2 weeks).
SESSION_COOKIE_AGE
=
60
*
60
*
24
*
7
*
2
# A string like "
.
example.com", or None for standard domain cookie.
# A string like "example.com", or None for standard domain cookie.
SESSION_COOKIE_DOMAIN
=
None
# Whether the session cookie should be secure (https:// only).
SESSION_COOKIE_SECURE
=
False
...
...
docs/ref/request-response.txt
Dosyayı görüntüle @
afd375fc
...
...
@@ -752,10 +752,9 @@ Methods
in UTC. If ``expires`` is a ``datetime`` object, the ``max_age``
will be calculated.
* Use ``domain`` if you want to set a cross-domain cookie. For example,
``domain=".lawrence.com"`` will set a cookie that is readable by
the domains www.lawrence.com, blogs.lawrence.com and
calendars.lawrence.com. Otherwise, a cookie will only be readable by
the domain that set it.
``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 ``httponly=True`` if you want to prevent client-side
JavaScript from having access to the cookie.
...
...
docs/ref/settings.txt
Dosyayı görüntüle @
afd375fc
...
...
@@ -309,7 +309,7 @@ Default: ``None``
The domain to be used when setting the CSRF cookie. This can be useful for
easily allowing cross-subdomain requests to be excluded from the normal cross
site request forgery protection. It should be set to a string such as
``"
.
example.com"`` to allow a POST request from a form on one subdomain to be
``"example.com"`` to allow a POST request from a form on one subdomain to be
accepted by a view served from another subdomain.
Please note that the presence of this setting does not imply that Django's CSRF
...
...
@@ -1733,8 +1733,8 @@ The age of the language cookie, in seconds.
Default: ``None``
The domain to use for the language cookie. Set this to a string such as
``"
.example.com"`` (note the leading dot!) for cross-domain cookies, or use
``None`` for a standard
domain cookie.
``"
example.com"`` for cross-domain cookies, or use ``None`` for a standard
domain cookie.
Be cautious when updating this setting on a production site. If you update
this setting to enable cross-domain cookies on a site that previously used
...
...
@@ -2958,8 +2958,8 @@ The age of session cookies, in seconds.
Default: ``None``
The domain to use for session cookies. Set this to a string such as
``"
.example.com"`` (note the leading dot!) for cross-domain cookies, or use
``None`` for a standard
domain cookie.
``"
example.com"`` for cross-domain cookies, or use ``None`` for a standard
domain cookie.
Be cautious when updating this setting on a production site. If you update
this setting to enable cross-domain cookies on a site that previously used
...
...
docs/topics/http/sessions.txt
Dosyayı görüntüle @
afd375fc
...
...
@@ -653,7 +653,7 @@ you'll be logged in as the attacker and might inadvertently enter your
sensitive personal data (e.g. credit card info) into the attackers account.
Another possible attack would be if ``good.example.com`` sets its
:setting:`SESSION_COOKIE_DOMAIN` to ``"
.
example.com"`` which would cause
:setting:`SESSION_COOKIE_DOMAIN` to ``"example.com"`` which would cause
session cookies from that site to be sent to ``bad.example.com``.
Technical details
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment