I need to be able to store sessions in such a way that requests can be
handled by multiple application servers transparently and that session
data survives a restart.
The only way to do this is with the supplied features is to use a
network filesystem for the session files.
I am not sure that this will work out. Will locking be a problem? Will
performance suffer?
I have created SQLAlchemyNamespaceManager which derives from
myghty.container.NamespaceManager.
The do_close, do_remove, do_open methods use a sqlalchemy table object
to create and update the session hash.
In a dummy myghty app I am able to create a session object like this:
from sqla import SQLAlchemyNamespaceManager
session =
m.get_session(session_namespace_class=SQLAlchemyNamespaceManager,
dburi='mysql://
dbuser:[EMAIL PROTECTED]/sessions_db')
I am now looking for a way to use SQLAlchemyNamespaceManager as
session store in my Pylons controllers.
I have tried to modify lib/environment.py, config/middleware.py, and
lib/base.by but without any success.
How can I use a custrom NamespaceManager for a Pylons session?
Thanks.
Bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---