[Opensource] triggering an event on Logoff

Michael Rimov rimovm at centercomp.com
Fri Jan 24 11:33:16 PST 2003


At 09:43 AM 1/24/2003 -0600, you wrote:

>I need to run a job whenever a user logs off - either by clicking logoff, 
>or by session timeout. Doing it when a user clicks Logoff is a no brainer, 
>but anyone have any ideas about handling the session timeout?

Mike,

Implement a SessionEventListener... you can perform the job when the 
session is invalidated... which happens both when the session times out and 
when the user logs out.  Check out ConfigManager's use of SessionListening 
to keep track of how many users are currently logged in.

HTH!!
                                                 -Mike





More information about the Opensource mailing list