From 436862787cbdbd68b0ba20ed8c23b295e3679df3 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 29 Nov 2021 17:22:23 +0000 Subject: Refs #29708 -- Made SessionBase store expiry as string. --- docs/topics/http/sessions.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 34dabdd536..ce92af7b71 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -258,10 +258,8 @@ You can edit it multiple times. ``request.session.set_expiry(300)`` would make the session expire in 5 minutes. - * If ``value`` is a ``datetime`` or ``timedelta`` object, the - session will expire at that specific date/time. Note that ``datetime`` - and ``timedelta`` values are only serializable if you are using the - :class:`~django.contrib.sessions.serializers.PickleSerializer`. + * If ``value`` is a ``datetime`` or ``timedelta`` object, the session + will expire at that specific date/time. * If ``value`` is ``0``, the user's session cookie will expire when the user's web browser is closed. -- cgit v1.3