Fix for MongoSessionIdManager's scavenging of immortal sessions

Signed-off-by: Tilo Zemke <telomir@gmail.com>
This commit is contained in:
Tilo Zemke 2016-11-07 17:54:04 +01:00
parent 2b88b0bc80
commit 23f11017d3
1 changed files with 1 additions and 2 deletions

View File

@ -268,8 +268,7 @@ public class MongoSessionIdManager extends AbstractSessionIdManager
BasicDBObject query = new BasicDBObject();
query.put(MongoSessionManager.__ID,new BasicDBObject("$in", ids ));
query.put(MongoSessionManager.__EXPIRY, new BasicDBObject("$gt", 0));
query.put(MongoSessionManager.__EXPIRY, new BasicDBObject("$lt", atTime));
query.put(MongoSessionManager.__EXPIRY, new BasicDBObject("$gt", 0).append("$lt", atTime));
DBCursor checkSessions = _sessions.find(query, new BasicDBObject(MongoSessionManager.__ID, 1));