[Twisted-web] Cannot redirect to a SessionWrapper-wrapped page (example code included)

glyph at divmod.com glyph at divmod.com
Mon Jul 16 10:11:25 EDT 2007

On 10:51 am, iacovou at gmail.com wrote:
>Specifically, Firefox (at least, that's what it reports; it's 
>latest version on Ubuntu Feisty) says:
>The page isn't redirecting properly

The guard wrapper is being re-created on every hit in the child_foopage 
method.  So, the session storage is getting re-created on every hit, 
which means that your session isn't being stored anywhere that the 
resource can access it.  So each time the browser hits it, it tries to 
recreate its session.

Put the guard wrapper somewhere persistent so that it will be the *same* 
guard wrapper accessed on subsequent hits, and it will work.

More information about the Twisted-web mailing list