summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2014-02-27 16:23:56 -0500
committerMichael Merickel <michael@merickel.org>2014-02-27 16:23:56 -0500
commit89dc4659eedfe75bada6d131722fbb00f1bbc49f (patch)
treedd5b39a5659fa0c6faacee40fa8d404fbaab8b58
parentea64faeeb7d30238fd7a9bc527aecd75f715fbc2 (diff)
downloadpyramid-89dc4659eedfe75bada6d131722fbb00f1bbc49f.tar.gz
pyramid-89dc4659eedfe75bada6d131722fbb00f1bbc49f.tar.bz2
pyramid-89dc4659eedfe75bada6d131722fbb00f1bbc49f.zip
improve timeout docs
-rw-r--r--pyramid/session.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/pyramid/session.py b/pyramid/session.py
index 3a045b91b..9fe2add60 100644
--- a/pyramid/session.py
+++ b/pyramid/session.py
@@ -192,14 +192,17 @@ def BaseCookieSessionFactory(
``timeout``
A number of seconds of inactivity before a session times out. If
- ``None`` then the cookie never expires. Default: 1200.
+ ``None`` then the cookie never expires. This lifetime only applies
+ to the *value* within the cookie. Meaning that if the cookie expires
+ due to a lower ``max_age``, then this setting has no effect.
+ Default: ``1200``.
``reissue_time``
The number of seconds that must pass before the cookie is automatically
reissued as the result of a request which accesses the session. The
duration is measured as the number of seconds since the last session
cookie was issued and 'now'. If this value is ``0``, a new cookie
- will be reissued on every request accesses the session. If ``None``
+ will be reissued on every request accessing the session. If ``None``
then the cookie's lifetime will never be extended.
A good rule of thumb: if you want auto-expired cookies based on
@@ -548,14 +551,17 @@ def SignedCookieSessionFactory(
``timeout``
A number of seconds of inactivity before a session times out. If
- ``None`` then the cookie never expires. Default: 1200.
+ ``None`` then the cookie never expires. This lifetime only applies
+ to the *value* within the cookie. Meaning that if the cookie expires
+ due to a lower ``max_age``, then this setting has no effect.
+ Default: ``1200``.
``reissue_time``
The number of seconds that must pass before the cookie is automatically
- reissued as the result of a request which accesses the session. The
+ reissued as the result of accessing the session. The
duration is measured as the number of seconds since the last session
cookie was issued and 'now'. If this value is ``0``, a new cookie
- will be reissued on every request accesses the session. If ``None``
+ will be reissued on every request accessing the session. If ``None``
then the cookie's lifetime will never be extended.
A good rule of thumb: if you want auto-expired cookies based on