title: Django session expiry?
body: <p>From django's documentation, I became under the impression that calling:</p>
  <pre class="lang-py prettyprint-override"><code>request.session.set_expiry(300)
  </code></pre>
  <p>From one view would cause the session to expire after five minutes <em>inactivity</em>; however, this is not the behavior that I'm experiencing in django trunk. If I call this method from one view, and browse around to other views that don't call the method, the session expires in five minutes. The behavior that I was expecting was a expire only after five minutes of inactivity and not simply failing to call set_expiry again before the expiry.</p>
  <p>My question then is do I really need to call set_expiry in every view? If so, does there exist some decorator that may be of assistance? I can't imagine this isn't part of contrib.</p>
  <p>Thanks,
  Pete</p>