can't you just concatenate the clientId? which is unique for the life of the TC server? weird that the bug comment didn't mention that.
Terracotta JIRA (on behalf of Tim Eck) wrote: > duplicate sessions IDs are possible in TC sessions > -------------------------------------------------- > > Key: CDV-875 > URL: https://jira.terracotta.org/jira//browse/CDV-875 > Project: Community Development > Issue Type: Bug > Components: Sessions > Affects Versions: 2.6.4 > Reporter: Tim Eck > Assignee: Issue Review Board > > > The ID generator for TC sessions does not guarantee that a unique session ID > will be created for new sessions. DefaultIDGenerator uses a SecureRandom and > a local only counter, but that only makes the chances for a collision very > small, it does not ensure there not be a collision. The ID generator will > need to cooperate with the data store to ensure that key does not exist > before allowing to be issued to a request for a new session > > The problem gets worse when multiple contexts are clustered that all have the > same context path (but differing vhosts) (see CDV-206) since the root for the > session data store will be come to common to all of those contexts. > _______________________________________________ tc-dev mailing list tc-dev@lists.terracotta.org http://lists.terracotta.org/mailman/listinfo/tc-dev