FELIX-4782 : Implement session handling

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1681782 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java b/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
index bb76122..3b58884 100644
--- a/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
+++ b/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpSessionWrapper.java
@@ -108,7 +108,7 @@
                 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));
                 }