It's still accessible:
public void sessionCreated(HttpSessionEvent hse) {
final HttpSession session = hse.getSession();
logger.debug("session created");
session.setAttribute(KEY, new Clickstream());
}
public void sessionDestroyed(HttpSessionEvent hse) {
final HttpSession session = hse.getSession();
// session.getAttribute(KEY) => failed.
logger.debug("session destroyed");
}
In sessionDestroyed method, I could only get sessionID as shown in the
link below, but not session.getAttribute(KEY).
I will try HttpSessionBindingListener, and see if this helps.
Thanks.
--
Actions that I tried to implement:
(1) Save fixThreadPool into session
(2) Submit tasks through fixpool
(3) When session auto-timeout
call fixpool.shutdown
https://stackoverflow.com/questions/19046976/not-getting-session-attributes-in-sessiondestroyed-method-of-httpsessionlisten
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org