summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.txt4
-rw-r--r--docs/topics/http/sessions.txt7
2 files changed, 10 insertions, 1 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index d98a4718cd..ac275b31b9 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -96,7 +96,9 @@ Minor features
:mod:`django.contrib.sessions`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-* ...
+* The new
+ :meth:`~django.contrib.sessions.backends.base.SessionBase.get_session_cookie_age()`
+ methods allows dynamically specifying the session cookie age.
:mod:`django.contrib.sitemaps`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index 745c735e46..313f33bfb9 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -244,6 +244,13 @@ You can edit it multiple times.
Deletes the test cookie. Use this to clean up after yourself.
+ .. method:: get_session_cookie_age()
+
+ .. versionadded:: 3.0
+
+ Returns the age of session cookies, in seconds. Defaults to
+ :setting:`SESSION_COOKIE_AGE`.
+
.. method:: set_expiry(value)
Sets the expiration time for the session. You can pass a number of