diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-02 19:02:46 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-02 19:02:46 -0400 |
| commit | 95d032468d5d445c64f6065e4b4b2889fa853e31 (patch) | |
| tree | 66bb56b03f2df802dd0836d017a59f993bcf86c8 /docs/narr/sessions.rst | |
| parent | 66be39bf656a2840931603bc959e38ff95e53164 (diff) | |
| parent | 61d1f729f4d9cc17a5fbcff0612512bc9f5fe7a2 (diff) | |
| download | pyramid-95d032468d5d445c64f6065e4b4b2889fa853e31.tar.gz pyramid-95d032468d5d445c64f6065e4b4b2889fa853e31.tar.bz2 pyramid-95d032468d5d445c64f6065e4b4b2889fa853e31.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/sessions.rst')
| -rw-r--r-- | docs/narr/sessions.rst | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst index f8279b0a5..649d22bd2 100644 --- a/docs/narr/sessions.rst +++ b/docs/narr/sessions.rst @@ -99,6 +99,11 @@ example: else: return Response('Fred was not in the session') +The first time this view is invoked produces ``Fred was not in the +session``. Subsequent invocations produce ``Fred was in the +session``, assuming of course that the client side maintains the +session's identity across multiple requests. + You can use a session much like a Python dictionary. It supports all dictionary methods, along with some extra attributes, and methods. @@ -154,10 +159,10 @@ Some gotchas: Using Alternate Session Factories --------------------------------- -At the time of this writing, exactly one project-endorsed alternate session -factory exists named``pyramid_redis_sessions``. It can be downloaded from PyPI. -It uses Redis as a backend. It is the recommended persistent session solution -at the time of this writing. +At the time of this writing, exactly one project-endorsed alternate session +factory exists named :term:`pyramid_redis_sessions`. It can be downloaded from +PyPI. It uses the Redis database as a backend. It is the recommended +persistent session solution at the time of this writing. .. index:: single: session factory (custom) |
