durusmail: quixote-users: SCGI and session bug.
SCGI and session bug.
quixote - zodb session example, was session bug
2003-07-18
2003-07-17
2003-07-25
SCGI and session bug.
Neil Schemenauer
2003-07-17
On Thu, Jul 17, 2003 at 09:16:37PM +0200, Van der Merwe HJ <13361562@sun.ac.za>
wrote:
> I have developed my website with SCGI. There is a problem with it
> though, if two requests come through almost at once, SCGI forks and
> creates a new QuixoteHandler, which in turn creates a new
> SessionPublisher, which in turn creates a new SessionManager. Since
> this SessionManager is new, it knows nothing of the existing sessions,

If you want to use multiple processes (as SCGI does) then you need to
have some way of sharing session information between processes.  We use
ZODB and it makes the problem trivial.  You could use some other
database or roll your own solution.

Perhaps some of the other people on the list can explain how they
implement session management.  I suspect most people use some sort of
database.  Hmm, I wonder if Quixote should include code for implementing
a simple session database.

  Neil

reply