"Sergey V. Udaltsov" wrote:
>
> Hello all
>
> My JSPs uses some session-scoped bean. This bean, among other duties, is
> responsible for logging in and out of some app server. I would like the
> bean to perform autologout on the session end. Is it possible? How?
> AFAIK usual finalize can be called ages after the object is really free
> - so I do not like this way. Any ideas?
>
> Regards,
>
> Sergey
>
Take a look at the HttpSessionBindingListener interface. If your
Bean implements this class, you can get a notification when
the session times out or is otherwise invalidated.
--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]