diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-02 14:22:40 -0700 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-02 14:22:40 -0700 |
| commit | c57e57b7ef61ab6f191faf10fa456d06a2207ba6 (patch) | |
| tree | e0cde5a83cb9c9e392b9375ca79f7c8a321b03fd /docs/narr/sessions.rst | |
| parent | ec1a74ba26d5fc8f7cc4ca4034780a558fd6e8c3 (diff) | |
| parent | b31cdc5beb173716235a026d264dafde12fea109 (diff) | |
| download | pyramid-c57e57b7ef61ab6f191faf10fa456d06a2207ba6.tar.gz pyramid-c57e57b7ef61ab6f191faf10fa456d06a2207ba6.tar.bz2 pyramid-c57e57b7ef61ab6f191faf10fa456d06a2207ba6.zip | |
Merge pull request #1138 from kpinc/doc_session
Docs: sessions.rst: Explain example.
Diffstat (limited to 'docs/narr/sessions.rst')
| -rw-r--r-- | docs/narr/sessions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst index f8279b0a5..f4da5d82a 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. |
