vincent delft said:
> Does this is normal that session are not working with
> scgi ?
>
> For example the "altdemo.py", with medusa, twisted it
> works correctly. With scgi, the "get_user()" return
> always None.

The default session storage mechanism is memory-based; the sessions are
stored in a dictionary.  SCGI creates multiple instances of the
application (multiple processes), and they can't see each other's
sessions.  So it depends which subprocess your request happens to hit.

You can set --max-children=1 to make it create only one instance, or use a
storage mechanism that works with multiple processes.  Quixote doesn't
come with one, but the session2 package I posted yesterday has
DirectorySessionStore, which saves the sessions in a directory and doesn't
require any special libraries to run.  You can get it at quixote.idyll.org
..

-- 
-- Mike Orr <[EMAIL PROTECTED]>

_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to