wood burning stoves
The moose likes Servlets and the fly likes Session Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Listener" Watch "Session Listener" New topic

Session Listener

Vels Manian

Joined: Jun 28, 2001
Posts: 22
I have a doubt in Session Listener. Will the sessionDestroyed method in the SessionListener called even if the session gets inactivated itself based on the session timeout set in the web server.
Thanks & Regards
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13035
That is exactly what it means - when the server inactivates the session, that method is called.
For many purposes I like SessionBindingListener better - it is also called when the session is inactivated.
All this is detailed in the servlet API which you can download from java.sun.com.
[ August 14, 2002: Message edited by: William Brogden ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Session Listener
It's not a secret anymore!