summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 16:17:09 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commit810edfd7428e12bd640573112c6c1a024ac33da2 (patch)
treec6dd06c80384f51aa373dfff5e0285d753a8830f /docs/topics/http
parent9b5ad4056ccf9ff7ea548f72d28eb66c1b4f84cc (diff)
Removed versionadded/changed annotations for 5.1.
This also removes remaining versionadded/changed annotations for older versions.
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/sessions.txt87
1 files changed, 0 insertions, 87 deletions
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index e670292ca8..03559da3ed 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -81,10 +81,6 @@ writing to the cache fails, the exception is handled and logged via the
:ref:`sessions logger <django-contrib-sessions-logger>`, to avoid failing an
otherwise successful write operation.
-.. versionchanged:: 5.1
-
- Handling and logging of exceptions when writing to the cache was added.
-
Session reads use the cache, or the database if the data has been evicted from
the cache. To use this backend, set :setting:`SESSION_ENGINE` to
``"django.contrib.sessions.backends.cached_db"``, and follow the configuration
@@ -202,14 +198,8 @@ You can edit it multiple times.
Example: ``fav_color = request.session.get('fav_color', 'red')``
- .. versionchanged:: 5.1
-
- ``aget()`` function was added.
-
.. method:: aset(key, value)
- .. versionadded:: 5.1
-
Example: ``await request.session.aset('fav_color', 'red')``
.. method:: update(dict)
@@ -219,10 +209,6 @@ You can edit it multiple times.
Example: ``request.session.update({'fav_color': 'red'})``
- .. versionchanged:: 5.1
-
- ``aupdate()`` function was added.
-
.. method:: pop(key, default=__not_given)
.. method:: apop(key, default=__not_given)
@@ -230,55 +216,31 @@ You can edit it multiple times.
Example: ``fav_color = request.session.pop('fav_color', 'blue')``
- .. versionchanged:: 5.1
-
- ``apop()`` function was added.
-
.. method:: keys()
.. method:: akeys()
*Asynchronous version*: ``akeys()``
- .. versionchanged:: 5.1
-
- ``akeys()`` function was added.
-
.. method:: values()
.. method:: avalues()
*Asynchronous version*: ``avalues()``
- .. versionchanged:: 5.1
-
- ``avalues()`` function was added.
-
.. method:: has_key(key)
.. method:: ahas_key(key)
*Asynchronous version*: ``ahas_key()``
- .. versionchanged:: 5.1
-
- ``ahas_key()`` function was added.
-
.. method:: items()
.. method:: aitems()
*Asynchronous version*: ``aitems()``
- .. versionchanged:: 5.1
-
- ``aitems()`` function was added.
-
.. method:: setdefault()
.. method:: asetdefault()
*Asynchronous version*: ``asetdefault()``
- .. versionchanged:: 5.1
-
- ``asetdefault()`` function was added.
-
.. method:: clear()
It also has these methods:
@@ -293,10 +255,6 @@ You can edit it multiple times.
can't be accessed again from the user's browser (for example, the
:func:`django.contrib.auth.logout()` function calls it).
- .. versionchanged:: 5.1
-
- ``aflush()`` function was added.
-
.. method:: set_test_cookie()
.. method:: aset_test_cookie()
@@ -307,10 +265,6 @@ You can edit it multiple times.
until the user's next page request. See `Setting test cookies`_ below for
more information.
- .. versionchanged:: 5.1
-
- ``aset_test_cookie()`` function was added.
-
.. method:: test_cookie_worked()
.. method:: atest_cookie_worked()
@@ -322,10 +276,6 @@ You can edit it multiple times.
previous, separate page request.
See `Setting test cookies`_ below for more information.
- .. versionchanged:: 5.1
-
- ``atest_cookie_worked()`` function was added.
-
.. method:: delete_test_cookie()
.. method:: adelete_test_cookie()
@@ -333,10 +283,6 @@ You can edit it multiple times.
Deletes the test cookie. Use this to clean up after yourself.
- .. versionchanged:: 5.1
-
- ``adelete_test_cookie()`` function was added.
-
.. method:: get_session_cookie_age()
Returns the value of the setting :setting:`SESSION_COOKIE_AGE`. This can
@@ -368,10 +314,6 @@ You can edit it multiple times.
purposes. Session expiration is computed from the last time the
session was *modified*.
- .. versionchanged:: 5.1
-
- ``aset_expiry()`` function was added.
-
.. method:: get_expiry_age()
.. method:: aget_expiry_age()
@@ -404,10 +346,6 @@ You can edit it multiple times.
expires_at = modification + timedelta(seconds=settings.SESSION_COOKIE_AGE)
- .. versionchanged:: 5.1
-
- ``aget_expiry_age()`` function was added.
-
.. method:: get_expiry_date()
.. method:: aget_expiry_date()
@@ -420,10 +358,6 @@ You can edit it multiple times.
This function accepts the same keyword arguments as
:meth:`get_expiry_age`, and similar notes on usage apply.
- .. versionchanged:: 5.1
-
- ``aget_expiry_date()`` function was added.
-
.. method:: get_expire_at_browser_close()
.. method:: aget_expire_at_browser_close()
@@ -432,10 +366,6 @@ You can edit it multiple times.
Returns either ``True`` or ``False``, depending on whether the user's
session cookie will expire when the user's web browser is closed.
- .. versionchanged:: 5.1
-
- ``aget_expire_at_browser_close()`` function was added.
-
.. method:: clear_expired()
.. method:: aclear_expired()
@@ -444,10 +374,6 @@ You can edit it multiple times.
Removes expired sessions from the session store. This class method is
called by :djadmin:`clearsessions`.
- .. versionchanged:: 5.1
-
- ``aclear_expired()`` function was added.
-
.. method:: cycle_key()
.. method:: acycle_key()
@@ -457,10 +383,6 @@ You can edit it multiple times.
:func:`django.contrib.auth.login()` calls this method to mitigate against
session fixation.
- .. versionchanged:: 5.1
-
- ``acycle_key()`` function was added.
-
.. _session_serialization:
Session serialization
@@ -616,10 +538,6 @@ Here's a typical usage example::
request.session.set_test_cookie()
return render(request, "foo/login_form.html")
-.. versionchanged:: 5.1
-
- Support for setting test cookies in asynchronous view functions was added.
-
Using sessions out of views
===========================
@@ -868,11 +786,6 @@ You can extend the session engines, but doing so with database-backed session
engines generally requires some extra effort (see the next section for
details).
-.. versionchanged:: 5.1
-
- ``aexists()``, ``acreate()``, ``asave()``, ``adelete()``, ``aload()``, and
- ``aclear_expired()`` methods were added.
-
.. _extending-database-backed-session-engines:
Extending database-backed session engines