*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Listener" Watch "Session Listener" New topic
Author

Session Listener

Vels Manian
Greenhorn

Joined: Jun 28, 2001
Posts: 22
Hi,
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
Vels
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.
Bill
[ August 14, 2002: Message edited by: William Brogden ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Session Listener
 
Similar Threads
Checking for valid session
Servlet listeners-HttpSessionListener and HttpSessionAttributeListener
Firefox window open on unload
getting the IP when the session is created
executing code when session dies