Inject o.a.t.services.Session.
-Filip
Angelo Chen skrev:
hi,
this works, thanks. i use:
global.getHTTPServletRequest().getSession().Invalidate();
I think T5 has a service of Session, how to obtain it?
anujith amaratunga 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]