Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty8RC0 - HttpSessionListener.sessionDestroyed() not called

Hi,

I've switched recently from jetty 7.4 to Jetty-8RC0, but encountered a
problem with session listeners.
I add a SessionListener to the ServletContext in order to do some
cleanup-work when the session is destroyed,
however with Jetty-8RC0 it seems sessionDestroyed is never called.

I use the following code:

> ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
> context.getSessionHandler().getSessionManager().setMaxInactiveInterval(90);
> context.getSessionHandler().addEventListener(new CacioSessionListener());
> context.addServlet(new ServletHolder(new SomeServlet()), "/SomeServlet");

With Jetty-7.4 the code above works as intended.
Should I file a bug about that?


Thanks, Clemens


Back to the top