Skip to content

Commit

Permalink
Add documentation about tg_avoid_touch for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Jul 19, 2011
1 parent 2eebe36 commit 98b8461
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/main/Session.rst
Expand Up @@ -82,3 +82,17 @@ session object:
Even though it's not customary to delete all user sessions on a production
environment, you will typically do it for cleaning up after
usability or functional tests.

Avoid automatic session extension
-----------------------------------

TurboGears by default automatically extends session life time
at every request if a session is already available. You can
avoid this behavior by changing your application configuration

.. code-block:: python
beaker.session.tg_avoid_touch = true
This will also prevent TurboGears from causing an automatic
session save at every request.

0 comments on commit 98b8461

Please sign in to comment.