Index: lams_admin/conf/xdoclet/listeners.xml =================================================================== diff -u -rfc606f440dcd337bb3965e9af6b30eb2125c0af1 -re851ecbb7a28dba597688df7f4466b2ab603405c --- lams_admin/conf/xdoclet/listeners.xml (.../listeners.xml) (revision fc606f440dcd337bb3965e9af6b30eb2125c0af1) +++ lams_admin/conf/xdoclet/listeners.xml (.../listeners.xml) (revision e851ecbb7a28dba597688df7f4466b2ab603405c) @@ -3,4 +3,8 @@ org.springframework.web.context.ContextLoaderListener - \ No newline at end of file + + + org.lamsfoundation.lams.web.session.SetMaxTimeoutListener + + \ No newline at end of file Index: lams_admin/web/WEB-INF/web.xml =================================================================== diff -u -r72b80f6befe04cb189ab1e682082671d109a90b9 -re851ecbb7a28dba597688df7f4466b2ab603405c --- lams_admin/web/WEB-INF/web.xml (.../web.xml) (revision 72b80f6befe04cb189ab1e682082671d109a90b9) +++ lams_admin/web/WEB-INF/web.xml (.../web.xml) (revision e851ecbb7a28dba597688df7f4466b2ab603405c) @@ -72,11 +72,6 @@ org.springframework.web.context.ContextLoaderListener - - - - org.lamsfoundation.lams.web.SessionListener - @@ -125,10 +120,6 @@ /fckeditor/editor/filemanager/browser/default/connectors/jsp/connector - - 120 - - classpath:/org/lamsfoundation/lams/lesson/lessonApplicationContext.xml classpath:/org/lamsfoundation/lams/learning/learningApplicationContext.xml @@ -157,27 +158,23 @@ - - insertLearningDesign - org.lamsfoundation.lams.authoring.web.InsertLDServlet + + + org.lamsfoundation.lams.web.session.SetMaxTimeoutListener + + - forgotPasswordServlet org.lamsfoundation.lams.web.ForgotPasswordServlet - flashCrashDump - org.lamsfoundation.lams.web.FlashCrashDumpServlet + dumpWDDX + org.lamsfoundation.lams.web.ReportWddxStructureServlet - storeLD - org.lamsfoundation.lams.authoring.web.StoreLDServlet - - - SimpleUploader org.lamsfoundation.lams.web.LAMSUploadServlet @@ -222,31 +219,11 @@ - copyMultipleToolContent - org.lamsfoundation.lams.authoring.web.CopyMultipleToolContentServlet - - - updateCollapsedGroup org.lamsfoundation.lams.web.UpdateCollapsedGroupServlet - storeNotebookEntry - org.lamsfoundation.lams.notebook.web.StoreNBEntryServlet - - - - storeTheme - org.lamsfoundation.lams.themes.web.StoreThemeServlet - - - - LessonJoinServlet - org.lamsfoundation.lams.webservice.xml.LessonJoinServlet - - - Connector org.lamsfoundation.lams.web.LAMSConnectorServlet @@ -263,8 +240,8 @@ - saveLessonOrder - org.lamsfoundation.lams.web.LessonOrderServlet + flashCrashDump + org.lamsfoundation.lams.web.FlashCrashDumpServlet @@ -273,11 +250,46 @@ - dumpWDDX - org.lamsfoundation.lams.web.ReportWddxStructureServlet + LessonJoinServlet + org.lamsfoundation.lams.webservice.xml.LessonJoinServlet + + storeLD + org.lamsfoundation.lams.authoring.web.StoreLDServlet + + + saveLessonOrder + org.lamsfoundation.lams.web.LessonOrderServlet + + + + storeTheme + org.lamsfoundation.lams.themes.web.StoreThemeServlet + + + + insertLearningDesign + org.lamsfoundation.lams.authoring.web.InsertLDServlet + + + + BogoPogoServlet + org.lamsfoundation.lams.webservice.BogoPogoServlet + + + + storeNotebookEntry + org.lamsfoundation.lams.notebook.web.StoreNBEntryServlet + + + + copyMultipleToolContent + org.lamsfoundation.lams.authoring.web.CopyMultipleToolContentServlet + + + action @@ -398,66 +410,66 @@ - insertLearningDesign - /servlet/authoring/insertLearningDesign - - forgotPasswordServlet /ForgotPasswordRequest - flashCrashDump - /servlet/flashCrashDump + dumpWDDX + /servlet/dumpWDDX - storeLD - /servlet/authoring/storeLearningDesignDetails - - SimpleUploader /fckeditor/editor/filemanager/upload/simpleuploader - copyMultipleToolContent - /servlet/authoring/copyMultipleToolContent - - updateCollapsedGroup /servlet/updateCollapsedGroup - storeNotebookEntry - /servlet/notebook/storeNotebookEntry + Connector + /fckeditor/editor/filemanager/browser/default/connectors/jsp/connector - storeTheme - /themes/servlet/storeTheme + flashCrashDump + /servlet/flashCrashDump + editLD + /eof/authoring/editLearningDesign + + LessonJoinServlet /services/xml/LessonJoin/* - Connector - /fckeditor/editor/filemanager/browser/default/connectors/jsp/connector + storeLD + /servlet/authoring/storeLearningDesignDetails saveLessonOrder /servlet/saveLessonOrder - editLD - /eof/authoring/editLearningDesign + storeTheme + /themes/servlet/storeTheme - dumpWDDX - /servlet/dumpWDDX + insertLearningDesign + /servlet/authoring/insertLearningDesign + + BogoPogoServlet + /BogoPogo + + + storeNotebookEntry + /servlet/notebook/storeNotebookEntry + + + copyMultipleToolContent + /servlet/authoring/copyMultipleToolContent + - - 120 - - csv text/plain Index: lams_common/src/java/org/lamsfoundation/lams/web/session/SetMaxTimeoutListener.java =================================================================== diff -u --- lams_common/src/java/org/lamsfoundation/lams/web/session/SetMaxTimeoutListener.java (revision 0) +++ lams_common/src/java/org/lamsfoundation/lams/web/session/SetMaxTimeoutListener.java (revision e851ecbb7a28dba597688df7f4466b2ab603405c) @@ -0,0 +1,56 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/* $Id$ */ +package org.lamsfoundation.lams.web.session; + +import javax.servlet.http.HttpSessionEvent; +import javax.servlet.http.HttpSessionListener; + +import org.apache.log4j.Logger; +import org.lamsfoundation.lams.util.Configuration; +import org.lamsfoundation.lams.util.ConfigurationKeys; + +/** + * @author jliew + * + */ +public class SetMaxTimeoutListener implements HttpSessionListener { + + private static Logger log = Logger.getLogger(SetMaxTimeoutListener.class); + + public void sessionCreated(HttpSessionEvent se) + { + try { + int timeout = Configuration.getAsInt(ConfigurationKeys.INACTIVE_TIME); + se.getSession().setMaxInactiveInterval(timeout); + } catch (Exception e) { + log.error("Couldn't set max inactive interval due to exception, ", e); + } + } + + public void sessionDestroyed(HttpSessionEvent se) + { + //nothing to do + } +} + \ No newline at end of file Index: lams_learning/conf/xdoclet/web-settings.xml =================================================================== diff -u -rcdab8186de5e9c75a9d6774616ead602dbf9cb69 -re851ecbb7a28dba597688df7f4466b2ab603405c --- lams_learning/conf/xdoclet/web-settings.xml (.../web-settings.xml) (revision cdab8186de5e9c75a9d6774616ead602dbf9cb69) +++ lams_learning/conf/xdoclet/web-settings.xml (.../web-settings.xml) (revision e851ecbb7a28dba597688df7f4466b2ab603405c) @@ -19,3 +19,8 @@ org.springframework.web.context.ContextLoaderListener + + + org.lamsfoundation.lams.web.session.SetMaxTimeoutListener + + \ No newline at end of file Index: lams_learning/web/WEB-INF/web.xml =================================================================== diff -u -r4f68a533e24967e0185132c5e361a8a054f43941 -re851ecbb7a28dba597688df7f4466b2ab603405c --- lams_learning/web/WEB-INF/web.xml (.../web.xml) (revision 4f68a533e24967e0185132c5e361a8a054f43941) +++ lams_learning/web/WEB-INF/web.xml (.../web.xml) (revision e851ecbb7a28dba597688df7f4466b2ab603405c) @@ -130,11 +130,7 @@ groupingExportPortfolio /groupingExportPortfolio - - - 120 - - +