durusmail: quixote-users: SQL-based session persistence techniques.
SQL-based session persistence techniques.
2004-02-22
2004-02-29
2004-03-01
2004-03-05
2004-03-18
SQL-based session persistence techniques.
Titus Brown
2004-02-29
-> On Sun, Feb 22, 2004 at 01:01:44AM -0800, Titus Brown wrote:
-> > Thoughts?  Comments?
->
-> Works for us.  Could you submit a patch?  If no one objects, I will
-> apply it.

Attached; it does two things:

* Session.__init__ now takes as arguments (id, remote_addr, create_time=None)
        and sets creation time to time() by default;

* SessionManager.new_session instantiates session_class with remote_addr
        directly:

        session = self.session_class(id, request.get_environ('REMOTE_ADDR'))

cheers,
--titus
reply