<p>I have 2 pods of Redmine deployed with Kubernetes the problem due to this the issue of session management is happening so some users are unable to login due to this so I came up with the idea to store the cache of both the pods in Redis server with Kubernetes(Centralized).<br>
I am giving the below configuration inside the Redmine pod in location.
 /opt/bitnami/redmine/config/application.rb</p>

<p>configuration</p>

<pre><code>config.cache_store = :redis_store, {
  host: "redis-headless.redis-namespace",  #service name of redis 
  port: 6379,
  db: 0,
  password: "xyz",
  namespace: "redis-namespace"
}, {
  expires_in: 90.minutes
}
</code></pre>

<p>But this is not working as supposed .Need help where I am doing wrong.</p>

<p>Redmine doesn't store any session data in its cache. Thus, configuring your two Redmines to use the same cache won't help.</p>

<p>By default Redmine stores the user sessions in a signed cookie sent to the user's browser without any server-local session storage. Since the session cookie is signed with a private key, you need to make sure that all installations using the same sessions also use the same application secret (and code and database).</p>

<p>Depending on how you have setup your Redmine, this secret is typically either stored in <code>config/initializers/secret_token.rb</code> or <code>config/secrets.yml</code> (relative to your Redmine installation directory). Make sure that you use the same secret here on both your Redmines.</p>
