Anton Y. Yakovlev wrote:
Hi!
From Script (Python) object:
request.SESSION[ 'some_data' ] = some_data; raise 'Redirect', context.some_script.absolute_url();
Why session object does not store data after redirect?
Hi Anton, Google is bland on this, I don't use redirects. But I remember(?) that redirects clear the request or is that just <form> vars? In any case you could return context.some_script(context,context.REQUEST) insteasd of a redirect raise thing u do instead to see if you retain the session. David
You raised an exception. Exceptions cause the current transaction to abort, which causes the changes you've made to the session to be thrown out. Use request.RESPONSE.redirect(context.some_script.absolute_url()) instead. - C On Sep 9, 2006, at 6:26 PM, Anton Y. Yakovlev wrote:
Hi!
From Script (Python) object:
request.SESSION[ 'some_data' ] = some_data; raise 'Redirect', context.some_script.absolute_url();
Why session object does not store data after redirect?
-- Regards, Anton Yakovlev _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Anton Y. Yakovlev -
Chris McDonough -
David H