sessionCreated « Servlet « JSF Q&A





1. HttpSessionListener (sessionCreated/destroyed) - strange behaviour    stackoverflow.com

I'm trying to use HttpSessionListener:

public class SessionListener implements HttpSessionListener
{
  public void sessionCreated(HttpSessionEvent event) {
    System.out.println("ID Session Created: " + event.getSession().getId());
  }
  public void sessionDestroyed(HttpSessionEvent event) ...