On 10/14/2013 10:55:09 AM, Michael Merickel wrote:
> >      def accessed(session, *arg, **kw):
> > -        session.accessed = int(time.time())
> > -        if not session._dirty:
> > -            session._dirty = True
> > -            def set_cookie_callback(request, response):
> > -                session._set_cookie(response)
> > -                session.request = None # explicitly break cycle 
> for
> gc
> > -            session.request.add_response_callback
> (set_cookie_callback)
> > +        session.accessed = now = int(time.time())
> > +        if now - session.renewed > session._reissue_time:
> 
> I'm confused about what you're asking. The renewal happens
> automatically in `session.changed()` which is invoked from the
> accessed and changed decorators.

This is because accessing the session updates the timestamps,
hence the session is renewed?

This is semi-invisible to the user.  I guess this is good,
or in other words, backwards compatible.


Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein