This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes capturing session ending event in server 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 "capturing session ending event in server" Watch "capturing session ending event in server" New topic
Author

capturing session ending event in server

jegan arumugam
Greenhorn

Joined: Jan 10, 2001
Posts: 3
dear friends,
is there any way to capture the event which marks and end of session from the server side so that we may delete the temporary files created and used during the session.is there any provisions in jsp/servlet to track the end of a session and then deleting the file.please those who can help me please mail me. jegan_seeu@yahoo.com
with reagrds
jegan
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
You need to look at the methods for the HttpSessionBindingListener interface.
An object implementing this interface can be attached to a HttpSession - it will then be notified when the session is about to be destroyed.
Bill

------------------
author of:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: capturing session ending event in server
 
Similar Threads
Window Closing event..Session expiry
Session End in JSP
clarification : HFS page 266
how to detect Browser close
javascript to detect browser closing