durusmail: quixote-users: Session Management and Multiple Processes
Session Management and Multiple Processes
2004-06-02
2004-06-02
2004-06-02
2004-06-02
2004-06-02
Session Management and Multiple Processes
Jeff Rush
2004-06-02
Hi, I'm digging into Quixote as a simple way to package some dynamic
sites but I need login capability.  Simplicity is key, and the reason I
chose Quixote.

Initially I tried mod_python as the simpliest but found that I needed to
modify mod_python_handler.py to subclass SessionPublisher.  Did that but
then hit the wall that the multi-process model of Apache confuses the
session key database, in that each process has a different view.

Seeing that SCGI appeared to be the choice of the Quixote community, I
switched to it, only to find the max_children= option to SCGIServer()
wherein it creates multiple service processes as well.

Haven't tried FastCGI yet.

I also found an example wherein someone used mod_python with a
full-blown PostgreSQL database but that is overkill for what I'm trying
to do.

I've also looked at the Dulcinea/ZODB option but it *looks* like I'm
going to need a separate ZEO process as I don't think the ZODB File
storage is shareable across multiple Quixote server processes either.

Can someone point me to a Quixote-friendly technology that is a
just-add-water quick'n'easy session manager.  Quixote looked so simple
so I must be missing something as sessions aren't that exotic of a
requirement.

Thanks for your time,

Jeff Rush




reply