Ejemplo n.º 1
0
/** session监听类 Created by kam on 2015/10/18. */
public class SessionListener implements HttpSessionListener {
  public static SessionContext sessionContext = SessionContext.getInstance();

  public void sessionCreated(HttpSessionEvent httpSessionEvent) {
    sessionContext.AddSession(httpSessionEvent.getSession());
  }

  public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
    sessionContext.DelSession(httpSessionEvent.getSession());
  }
}
Ejemplo n.º 2
0
 public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
   sessionContext.DelSession(httpSessionEvent.getSession());
 }
Ejemplo n.º 3
0
 public void sessionCreated(HttpSessionEvent httpSessionEvent) {
   sessionContext.AddSession(httpSessionEvent.getSession());
 }