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 pylons-discuss@googlegroups.com
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