Session生命周期内的事件

      当Session was created or was destroyed 使用HttpServletListener 监听 触发HttpSessionEvent

         当Session was added or removed or replaced Attribute  使用HttpSessionAttributeListener 监听 触发HttpSessionBindingEvent

         当Session has been Actived  使用HttpSessionActivationListener 监听 触发HttpSessionEvent

  

原文地址:https://www.cnblogs.com/pengshaomin/p/2678132.html