commit | 084274c59abdcbfb3a76826f20ae277048db4ea4 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Tue May 26 15:53:48 2015 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Tue May 26 15:53:48 2015 +0000 |
tree | 721911329333f355f8ff91159853afe33a81e5c7 | |
parent | 4c5419c6282976cd3b7e418d041ac6a98c689e52 [diff] |
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)); }