Doh! didn't read your answer before posting... also didn't bother to look
and see that the tapestry Session exposes invalidate.
On Nov 28, 2007 6:16 AM, anujith amaratunga <
[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wrote:
> >
> > On Nov 28, 2007 4:15 PM, Angelo Chen <[EMAIL PROTECTED]>;
> wrote:
> > >
> > > I have a few pages that has some @Persist objects, I'd like to release
> > all
> > > those objects when user log out the application so that the next login
> > user
> > > will not see those persisted objects that are supposed to be visible
> to
> > only
> > > the previous user, any way to handle this? Thanks,
> >
> > try @Persist("flash")
>
> Flash persistence will help but not completely address the concern. Flash
> objects are only cleared from the session when they are read. If they're
> not
> read for some reason, they aren't cleared.
>
> I'd just use Session.invalidate() on logout.
>
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/src-html/org/apache/tapestry/services/Session.html#line.65
> Mind you, the problem you mentioned will only apply if both users are on
> the
> same browser instance.
>
> cheers
>
> Anujith
> --
> View this message in context:
> http://www.nabble.com/T5%3A-cleaning-up-persisted-objects-during-user-logout-tf4887697.html#a13993127
> Sent from the Tapestry - User mailing list archive at
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.