4 Replies Latest reply on Mar 12, 2003 4:29 PM by Vandenbroucke Johan

    Now i see the Session Created but not Session destroy

    Vandenbroucke Johan Newbie

      peter,

      Indeed it is a better solution, and for the first time a see a listener thats work for a part. The session created works, but the session destroys doesn't happens.

      My web xml is like
      ==================
      ...


      <listener-class>com.mucode.MyListener</listener-class>

      ...
      <session-config>
      <session-timeout>1</session-timeout>
      </session-config>
      ...

      My listener code is like
      ========================
      public class Listener implements HttpSessionListener
      {

      public void sessionDestroyed(HttpSessionEvent evt)
      {
      System.err.println("session deactivated !!!");
      }

      public void sessionCreated(HttpSessionEvent evt)
      {
      System.err.println("session activated !!!");
      }
      }

      Very strange i not com in the destroy part, is there something that must defined in web.xml to let the destroy happens ?

      Johan