durusmail: quixote-users: How do sessions work with SCGI?
How do sessions work with SCGI?
2005-03-24
2005-03-25
How do sessions work with SCGI?
David Binger
2005-03-25
On Mar 24, 2005, at 1:07 PM, Leif K-Brooks wrote:

> Under Quixote 2's SCGI server without any session persistence, how (if
> at all) are session objects shared between processes? If there is any
> session sharing, is it safe to store ZODB objects in sessions even
> though every SCGI process gets its own ZEO connection?

In the MEMS Exchange applications, Sessions are Persistent, stored in
the Durus (could be ZODB)
database, and shared among SCGI processes through the same persistence
machinery that is used
for all other data.

The SCGI server's dispatcher process is not involved at all in any
sharing among the
child SCGI processes that are actually handling requests: it just
passes file descriptors
to the children.

We store a Persistent User object on each session, so, yes.






reply