You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sergey Didenko <se...@gmail.com> on 2009/09/10 15:57:14 UTC

T5: access some user session from another thread

How can I delete a user session not from his request but from another
thread in T5?

Suppose user deletion happens on a regular basis.  But the user to be
deleted can be logged in. How can I delete not just database record
for that user but also invalidate his current session objects if they
exist?

The alternative is quite cumbersome - to check database user entry on
every user request.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: access some user session from another thread

Posted by Sergey Didenko <se...@gmail.com>.
I see, this question is not in the Tapestry field probably. I should
use HttpSessionListener.

On Thu, Sep 10, 2009 at 4:57 PM, Sergey Didenko
<se...@gmail.com> wrote:
> How can I delete a user session not from his request but from another
> thread in T5?
>
> Suppose user deletion happens on a regular basis.  But the user to be
> deleted can be logged in. How can I delete not just database record
> for that user but also invalidate his current session objects if they
> exist?
>
> The alternative is quite cumbersome - to check database user entry on
> every user request.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org