After some digging I came up with the following solution: In config/middleware.py at the top op make_app I've added the following lines:
from sqla import SQLAlchemyNamespaceManager app_conf['session_namespace_class'] = SQLAlchemyNamespaceManager app_conf['session_dburi'] = 'mysql://dbuser:[EMAIL PROTECTED]/ sessions_db' I still need to move the sqlalchemy.create_engine call from the constructor of SQLAlchemyNamespaceManager so that requests can share the same connection to the session database. But other than that it seems to work. I am interested to hear what setup people are using for scalable and longer-lived sessions. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---