# Cookie issue with Kibana behind a load balancer

**URL:** <https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639>\
**Category:** Kibana\
**Created:** [March 18, 2021, 10:50am UTC](https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639 "2021-03-18T10:50:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsu](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jsu](https://discuss.elastic.co/u/jsu)\
**Post date:** [March 18, 2021, 10:50am UTC](https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639/1 "2021-03-18T10:50:12Z")

</div>

Hey folks,

As stated in the title, I was having issues with cookies of kibana instances behind a load balancer and even after taking into consideration what's written on the [page concerning Kibana in production](https://www.elastic.co/guide/en/kibana/current/production.html#load-balancing-kibana), it didn't work.

I found the solution on the following topic:  
[Random Logout of Multiple Load Balanced Kibana on Multiple Elasticsearch Clusters](https://discuss.elastic.co/t/random-logout-of-multiple-load-balanced-kibana-on-multiple-elasticsearch-clusters/207942/3)

Not being able to answer the proper topic, I just created this one to say that the idea of @ea1987 to have this behavior documented inside the above-mentioned page is very relevant and would make a lot of sense.

Let me know if it's not the right place for this proposition.

Cheers,

Julien

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [March 18, 2021, 3:14pm UTC](https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639/2 "2021-03-18T15:14:58Z")

</div>

Hi Julien,

Thanks for the feedback and taking the time to write this post to share what you found. I agree that we should definitely make this more clear. Would you mind filing an issue in [our public GitHub repo here](https://github.com/elastic/kibana/issues/new)? If not, I'll file one later today.

If you'd like to become a contributor to the project, you're also welcome to open a PR with some [edits to the file here](https://github.com/elastic/kibana/blob/master/docs/user/production-considerations/production.asciidoc) (you can do this right in the GitHub UI) and we can get help get it merged in!

Thanks again, Julien!

---

<div class="post-metadata">

**Author:** ![jsu](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jsu](https://discuss.elastic.co/u/jsu)\
**Post date:** [March 18, 2021, 3:41pm UTC](https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639/3 "2021-03-18T15:41:30Z")

</div>

Hi Josh,

Thanks for your answer. Sure I can file an issue tomorrow, no problem. And I would gladly open an PR also but I might need help as I've never done it on an open source (or almost 😉 ) project before.

I'll work on this tomorrow and I'll come back to you if I have any issue then!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 15, 2021, 3:41pm UTC](https://discuss.elastic.co/t/cookie-issue-with-kibana-behind-a-load-balancer/267639/4 "2021-04-15T15:41:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
