On Thursday, August 25, 2011 3:28:38 PM UTC-4, G wrote:
>
> Hi,
> Can you explain this a bit more? Is the idea to call
> session.forget(response) in my main controller, but not in the
> components that have forms in them? I had previously put the
> session.forget() line in the model file so it was always executed.
>
Yes, you can put session.forget(response) anywhere (model, controller
outside a function, controller inside a function). If you put it in a model
file, you could make it conditional:
session_actions = ['component_with_form1','component_with_form2',...]
if not request.function in session_actions:
session.forget(response)
Anthony