Issue #6085 Fix duplicate valid session cookies to pick first valid.

Cosmetic changes.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2021-03-25 11:32:51 +01:00
parent af042ba297
commit 64006c61c6
1 changed files with 6 additions and 4 deletions

View File

@ -1674,8 +1674,7 @@ public class SessionHandler extends ScopedHandler
if (s != null && isValid(s))
{
//associate it with the request so its reference count is decremented as the
//session exits
//try this session id
//request exits
requestedSessionId = id;
session = s;
baseRequest.enterSession(session);
@ -1713,8 +1712,11 @@ public class SessionHandler extends ScopedHandler
throw new BadMessageException("Duplicate valid session cookies: " + requestedSessionId + " ," + id);
}
}
else if (LOG.isDebugEnabled())
LOG.debug("Duplicate valid session cookie id: {}", id);
else
{
if (LOG.isDebugEnabled())
LOG.debug("Duplicate valid session cookie id: {}", id);
}
}
}
}