felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1681782 - /felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
Date Tue, 26 May 2015 15:53:49 GMT
Author: cziegeler
Date: Tue May 26 15:53:48 2015
New Revision: 1681782

URL: http://svn.apache.org/r1681782
Log:
FELIX-4782 : Implement session handling

Modified:
    felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java

Modified: felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java?rev=1681782&r1=1681781&r2=1681782&view=diff
==============================================================================
--- felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
(original)
+++ felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
Tue May 26 15:53:48 2015
@@ -108,7 +108,7 @@ public class HttpSessionWrapper implemen
                 final long lastAccess = (Long)session.getAttribute(name);
                 final Integer maxTimeout = (Integer)session.getAttribute(ATTR_MAX_INACTIVE
+ id);
 
-                if ( lastAccess + maxTimeout < now )
+                if ( maxTimeout > 0 && lastAccess + maxTimeout < now )
                 {
                     ids.add(Long.valueOf(id));
                 }



Mime
View raw message