Fix for MongoSessionIdManager's scavenging of immortal sessions
Signed-off-by: Tilo Zemke <telomir@gmail.com>
This commit is contained in:
parent
2b88b0bc80
commit
23f11017d3
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue