Session-timeout configuration doesn't work?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-14T21:39:10Z Indexed on 2010/04/14 21:43 UTC
Read the original article Hit count: 235

Filed under:
|

In web.xml I have this

<session-config>
  <session-timeout>2</session-timeout>
</session-config>

   <listener>
 <listener-class>myapplication.SessionListener</listener-class>

In the SessionListener.java I have

public void sessionDestroyed (HttpSessionEvent event){
System.out.println("Visitor Removed!!"); }

But it seems System.out.println("Visitor Removed!!") has never been executed. I am new to Tombat6 and JSp. Any suggestion please?

© Stack Overflow or respective owner

Related posts about java

Related posts about web.xml