geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r601831 - in /geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main: java/org/apache/geronimo/test/TestServlet.java webapp/WEB-INF/web.xml
Date Thu, 06 Dec 2007 19:48:12 GMT
Author: gawor
Date: Thu Dec  6 11:48:11 2007
New Revision: 601831

URL: http://svn.apache.org/viewvc?rev=601831&view=rev
Log:
let sessions expire

Modified:
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java?rev=601831&r1=601830&r2=601831&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
Thu Dec  6 11:48:11 2007
@@ -27,6 +27,7 @@
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
 
 public class TestServlet extends HttpServlet {
         
@@ -42,6 +43,10 @@
             Integer value = lookup("java:comp/env/value", request);
         
             out.println("TestServlet2: " + value);
+
+            // create new session for testing
+            HttpSession session = request.getSession(true);
+            session.setAttribute("sessAttr1", "value21");
         }
     }
     

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml?rev=601831&r1=601830&r2=601831&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
Thu Dec  6 11:48:11 2007
@@ -37,6 +37,10 @@
        <listener-class>org.apache.geronimo.test.SessionListener</listener-class>
    </listener>
 
+   <session-config>
+       <session-timeout>1</session-timeout>
+   </session-config>
+
    <filter>
        <filter-name>TestFilter</filter-name>
        <filter-class>org.apache.geronimo.test.TestFilter</filter-class>



Mime
View raw message