package org.jivesoftware.admin;

import org.jivesoftware.util.JiveGlobals;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import javax.servlet.annotation.WebListener;

/**
 * A http session listener that implements a configurable session timeout.<p>
 *
 * The session timeout is taken from the property {@code adminConsole.sessionTimeout}, the default is 30min.
 *
 * @author Guido Jaekel, guido.jaekel@gmx.de
 * @author Guus der Kinderen, guus.der.kinderen@gmail.com
 */

@WebListener
public class SessionListener implements HttpSessionListener {

     private static final int sessionTimeout = JiveGlobals.getIntProperty( "adminConsole.sessionTimeout", 30*60 ); // secs


     public void sessionCreated(HttpSessionEvent event){
         event.getSession().setMaxInactiveInterval(sessionTimeout);
     }


     public void sessionDestroyed(HttpSessionEvent event) {
     }

}

@@ -452,66 +452,8 @@
 .de%0A
- * @author Guus der Kinderen, guus.der.kinderen@gmail.com%0A
  */%0A

Update xmppserver/src/main/java/org/jivesoftware/admin/SessionListener.java