tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: Session Close
Date Wed, 08 Nov 2000 18:59:48 GMT


Pablo Trujillo wrote:
> 
> I need to execute a procedure when a session closes. Is this possible? How
> it is made?

Make a class that is a HttpSessionBindingListener - attach an
object of this class to the session. When the session is destroyed
your object will get a call to the valueUnbound method.

-- 
WBB - wbrogden@bga.com
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Mime
View raw message