Browse Source

Add more information to doc regarding PERMANENT_SESSION_LIFETIME config.

pull/2422/head
asmith26 7 years ago committed by GitHub
parent
commit
3375ba39b1
  1. 5
      docs/config.rst

5
docs/config.rst

@ -168,8 +168,9 @@ The following configuration values are used internally by Flask:
.. py:data:: PERMANENT_SESSION_LIFETIME
If ``session.permanent`` is true, the cookie's max age will be set to this
number of seconds. Can either be a :class:`datetime.timedelta` or an
``int``.
number of seconds. A client cannot [replay](https://en.wikipedia.org/wiki
/Session_replay) the session value after the value has expired. Can either
be a :class:`datetime.timedelta` or an ``int``.
Default: ``timedelta(days=31)`` (``2678400`` seconds)

Loading…
Cancel
Save