mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #28763 -- Allowed overriding the session cookie age with SessionStore.get_session_cookie_age().
This commit is contained in:
parent
df28ebd6c8
commit
9d6f981a66
7 changed files with 32 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue