PDA

View Full Version : Destroying objects after session expires


michael.prichard
Jul 13th, 2006, 05:03 PM
How do I destory objects after a session expires? For example, I create datasources when a user logs in and store those references in a session. If that user does not "logout" those objects could stick around for a long time. This could become a problem if I have DB connections not closing and sticking around.

Any ideas on the best ways to handle this?

-Michael

moa
Jul 19th, 2006, 05:19 AM
use HttpSessionListener