I've got a web application. I store user sessions in collection. I also want to has an ability to renew user session. So I need to store even inactive user connections for some period, and if they are inactive for about a day, I should remove them. Like: expirationList.add(userSesion, timeout);
, but each time I invoke userSesion's method I have to reset timeout.
Question: Are there any implementations of such collection?