Hi,
See below some code on how to reproduce it.
public class MySessionListener implements SessionListener {
@Override
public void onStart(Session session) {
}
@Override
public void onStop(Session session) {
//Throws exception which prevents normal flow after, the session
object in not deleted in sessionDAO
session.removeAttribute(validAttribute);
}
@Override
public void onExpiration(Session session) {
//Throws exception which prevents normal flow after, the session
object in not deleted in sessionDAO
session.removeAttribute(validAttribute); //Throws exception which
prevents normal flow after
}
}
I would like to fix this bug and enclose some code within try/finally
blocks.
WDYT?
--
View this message in context:
http://shiro-developer.582600.n2.nabble.com/jira-Created-SHIRO-399-Memory-leak-for-invalid-sessions-tp7577746p7577747.html
Sent from the Shiro Developer mailing list archive at Nabble.com.