title: Why Jira and Confluence data center admin automatically logout after refresh pages?
body: <p>Using HAProxy as a load balancer.</p>
  
  <p>From the official guide set the configuration:</p>
  
  <p><a href="https://confluence.atlassian.com/enterprise/jira-data-center-load-balancer-examples-781200827.html" rel="nofollow noreferrer">https://confluence.atlassian.com/enterprise/jira-data-center-load-balancer-examples-781200827.html</a></p>
  
  <p>Here is the configuration for HAProxy:</p>
  
  <pre><code>frontend jira
      bind :::8080 v4v6
      default_backend             jira
  
  frontend confluence
      bind :::8090 v4v6
      default_backend             confluence
  
  backend jira
      balance     roundrobin
      cookie JSESSIONID prefix nocache
      server jira1 [IP1]:8080 check cookie jira1
      server jira2 [IP2]:8080 check cookie jira2
  
  backend confluence
      balance     roundrobin
      cookie JSESSIONID prefix nocache
      server confluence1 [IP3]:8090 check cookie confluence1
      server confluence2 [IP4]:8090 check cookie confluence2
  </code></pre>
  
  <p>It works when login into the system. But after refresh page sometime, it will been logout automatically.</p>
  
  <p>And, I didn't find cookie in browser after login into the system as screenshot attached.</p>
  
  <p><a href="https://i.stack.imgur.com/1kOaY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1kOaY.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/Mfi6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mfi6e.png" alt="enter image description here"></a></p>