Session End in JSP

hi friends ,

is there is any possibility to capture the event of a session end from the server side.this is neede to terminate the files created during the session.so after the sessionthose temp files have to be cleared.this can be done only if we know about when a session ends.so please friends if any body can throw some light on this it will be more help full.

with regards

Venkat

[416 byte] By [mrvenkatesh] at [2007-9-26 4:37:22]
# 1
I'm guessing that you could easily write your own extension of javax.servlet.HttpSession and override it's invalidate() method to remove any associated files. Does anyone know if this would work? It's worth a try I guess.
Enygma42 at 2007-6-29 17:56:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Take a look at this link for some ideas: http://www.jguru.com/faq/view.jsp?EID=267014
hungyee at 2007-6-29 17:56:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

If you can afford the luxury of using Servlet API 2.3, there is javax.servlet.http.HttpSessionListener

An object implementing this interface will receive notifications of the type you are loking for.

If interested read about it in the Java Servlet Specifications version 2.3

neville_sequeira at 2007-6-29 17:56:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...