[Twisted-web] How to restore sessions after restart app?
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Mon Nov 7 08:53:20 EST 2011
On 5 Nov, 04:09 am, poisonoff at gmail.com wrote:
>After restart twisted.web.server.Site all sessions lost, how it
>restore?
Twisted Web doesn't support persistent sessions out of the box. You
could try to implement them by overriding the session storage
implementation on the Site object. See `Site.makeSession`,
`Site.getSession`, and the `Site.sessions` dictionary.
Jean-Paul
More information about the Twisted-web
mailing list