Try to persist changes in the session ''after'' the request has been successfully processed, but ''before'' the content is actually sent. That way, errors like database locks that are triggered by this won't go unnoticed.
Fixes #3503.
Authored by: cboos 2006-10-26
Parent: [r4047]
Child: [r4049]