This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Session end Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Session end" Watch "Session end" New topic
Author

Session end

Muthuvel Chinnachamy
Ranch Hand

Joined: Jun 13, 2001
Posts: 31
Dear all,
we are developing an internet based application using servlets and beans. At the start of the application, after the user is logged in, the session is started. As part of the application, lots of information is stored in the session for the particular user, (including files uploaded). Now the problem is all these information should be removed from session, files should be deleted at end of the session. Now my question is How do I detect the session end?
Thanks in advance.
Muthuvel Chinnachamy.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Check out javax.servlet.http.HttpSessionBindingListener, especially valueUnbound().
- Peter
Muthuvel Chinnachamy
Ranch Hand

Joined: Jun 13, 2001
Posts: 31
Dear Peter,
Thanks for your reply.
I will explore more and get you back in case of problem.
Thanks again,
Muthuvel C.
Manjunath Reddy
Ranch Hand

Joined: Jul 26, 2001
Posts: 60
And also check this out.. http://www.javaranch.com/ubb/Forum7/HTML/005514.html
cheers,
mpr
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session end
 
Similar Threads
Session Invalidation and Timeout !
A database or not ?
logout issue
How to handle session variable when session times out
Pass Http Session to two different application