Thanks Mike,
So just to clarify I need to del the current session with every
request is that right?  Is there ever a situation where I would not
want to del the current session with every request?

On a different note with my current setup (using extension=sac.ext) I
thing that the explicit "save" (rec.save() from the example above) is
not really necessary is it?

Thanks for the help

Jose



On Aug 6, 1:49 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
> On 8/6/07, jose <[EMAIL PROTECTED]> wrote:
>
>
>
> > How do I clear the database session? I thought sacontext took care of
> > that?
>
> del sac.session_context.current
>
> This is normally put in the base controller before the subclass call.
>
> If you don't do this before the different "users", it will hold
> records in memory and assume they are the latest data.  Deleting the
> session (which forces a new one to be created at next access) clears
> out these memory records.  Of course, which stale data you have
> depends on which request the current thread last handled, which is
> unpredictable.
>
> --
> Mike Orr <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to