Index: lams_central/src/java/org/lamsfoundation/lams/web/SessionListener.java =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -rbade4b8bf18e8e7b609d3e3e643e8cae64869303 --- lams_central/src/java/org/lamsfoundation/lams/web/SessionListener.java (.../SessionListener.java) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_central/src/java/org/lamsfoundation/lams/web/SessionListener.java (.../SessionListener.java) (revision bade4b8bf18e8e7b609d3e3e643e8cae64869303) @@ -49,23 +49,18 @@ */ public class SessionListener implements HttpSessionListener { - private static int timeout; //in seconds private static CacheableManager authenticationManager; private static Logger log = Logger.getLogger(SessionListener.class); - static { - SessionListener.timeout = Configuration.getAsInt(ConfigurationKeys.INACTIVE_TIME); - } - /** HttpSessionListener interface */ @Override public void sessionCreated(HttpSessionEvent sessionEvent) { if (sessionEvent == null) { return; } HttpSession session = sessionEvent.getSession(); - session.setMaxInactiveInterval(SessionListener.timeout); + session.setMaxInactiveInterval(Configuration.getAsInt(ConfigurationKeys.INACTIVE_TIME)); //set server default locale for STURTS and JSTL. This value should be overwrite //LocaleFilter class. But this part code can cope with login.jsp Locale.