Django SECRET_KEY in a distributed setup

django

Solution

I guess it must be the same. Here is related question: Django SECRET_KEY.

Basically secret key is used to validate various things send to client or put in session. So if your nodes would have different secret keys you would have client's session cleared everytime it is routed to new node (which is bad).

Problem

If I am setting up multiple django servers behind a load balancer, do I want the SECRET_KEY to be the same, different or does it matter at all? The docs are a little thin on exactly what this value is used for.

Original source

Related problems