This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session end

 
Muthuvel Chinnachamy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out javax.servlet.http.HttpSessionBindingListener, especially valueUnbound().
- Peter
 
Muthuvel Chinnachamy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also check this out.. http://www.javaranch.com/ubb/Forum7/HTML/005514.html
cheers,
mpr
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic