Skip to content

Does csrfguard support multiple web servers in load balancing environment? #146

Answered by forgedhallpass
sumaharjan asked this question in Q&A
Discussion options

You must be logged in to vote
  1. If you need session replication you could try tying the tokens back to the session, so they would be automatically replicated (although it would require changes in the library and you would need to find a way for the TokenHolder interface not to depend on HTTP sessions directly, because that would not make sense in case of stateless web apps).

  2. Have you considered/tried moving the tokens to a database or to an in-memory cache instead of relying on the InMemoryTokenHolder?

Taken from #121 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by forgedhallpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants