Jeff Peterson wrote at 2006-6-26 15:04 -0500:
>I have a page template that calls a couple of scripts at the beginning, 
>they are setting session objects and redirecting to a login screen if 
>certain session objects don't exist.  I am pulling in a macro to display 
>the content for this page.  When the macro is rendered, the scripts fail 
>to operate properly (commented out they work perfectly). In the error 
>case the redirect still happens however, none of the session variable 
>are set.

How do you redirect? With "raise 'Redirect'"?.

In this case (as in all cases when an exception arrives at
the "ZPublisher"), the transaction is aborted and all
session modifications are annihilated.



-- 
Dieter
_______________________________________________
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt

Reply via email to