How to generate custom JSESSIONID, based on some hash of user's data in order to replicate session

Posted by Shaman on Stack Overflow See other posts from Stack Overflow or by Shaman
Published on 2010-05-14T11:51:22Z Indexed on 2010/05/14 12:14 UTC
Read the original article Hit count: 382

Filed under:
|
|
|

Is it possible to override Tomcat's embedded generator of JSESSIONID, to be able to create custom values of this cookie, based on user's login?

Why do I need this: I have a load balancer with "sticky sessions", configured to route requests with the same JSESSIONID to the same server, and I want to prevent situation, when same user can start two different sessions on different servers.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsessionid