I use Play in a cluster behind an AWS load balancer. To prevent CSRF attacks I added @CSRF.formFields to all form submits. But I get 403 errors randomly, and I guess it's because the token issued by server A wouldn't be accepted by server B.
Have you encountered this problem before? Did you need to store the session in a distributed cache or database? Are there features in Play that I'm not aware of that can solve this problem?
By the way, a similar question was asked here with no answers.
Thanks for your help!