[mod_python] Is external redirect supposed to send acookie(mpservlets)?

Scott Chapman scott_list at mischko.com
Mon Jun 20 20:35:27 EDT 2005


Graham Dumpleton wrote:
> Is the problem perhaps that you are using:
> 
>   self.external_redirect(...)
> 
> and not:
> 
>   util.redirect(...)
> 
> In util.redirect(), it writes actual page content out and this may
> trigger the flushing out of any headers that have been set indirectly
> by Session for cookies.
> 
> In self.external_redirect() of mpservlets() it neither flushes the
> headers or writes any content and so cookie headers may not
> get written.
> 
> Graham

That fixed it.  I was also popping the wrong value but popping the 
correct one did not solve the problem.  Using util.redirect did.

Thanks Graham!

Scott


More information about the Mod_python mailing list