# Session expires very fast

**URL:** <https://discuss.elastic.co/t/session-expires-very-fast/254446>\
**Category:** Kibana\
**Created:** [November 5, 2020, 6:05pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446 "2020-11-05T18:05:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdy5159](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdy5159/32/115812_2.png) [@cdy5159](https://discuss.elastic.co/u/cdy5159)\
**Post date:** [November 5, 2020, 6:05pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/1 "2020-11-05T18:05:41Z")

</div>

Ever since I upgraded to version 7.X, my session will expire even though I'm working in Kibana. It could happen anytime for seemingly no reason. Is there some timeout config that is causing this?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [November 5, 2020, 6:17pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/2 "2020-11-05T18:17:52Z")

</div>

What version are you using?

Check the [documentation](https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html) for session. It's different between versions of 7.x so make sure you pick the right version of documentation. You can set it but if you didn't then I am assuming it's default still.

Also specific versions count as a timeout for multiple tabs open. It doesn't calculate per tab. I'd have to look up to see what update changed that.

---

<div class="post-metadata">

**Author:** ![cdy5159](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdy5159/32/115812_2.png) [@cdy5159](https://discuss.elastic.co/u/cdy5159)\
**Post date:** [November 5, 2020, 6:30pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/3 "2020-11-05T18:30:52Z")

</div>

I'm currently using 7.9.2

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [November 5, 2020, 7:19pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/4 "2020-11-05T19:19:04Z")

</div>

Are you opening multiple tabs?

Do you have the below settings in kibana.yml set to anything?

`xpack.security.session.idleTimeout` and `xpack.security.session.lifespan`

---

<div class="post-metadata">

**Author:** ![cdy5159](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdy5159/32/115812_2.png) [@cdy5159](https://discuss.elastic.co/u/cdy5159)\
**Post date:** [November 5, 2020, 7:35pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/5 "2020-11-05T19:35:43Z")

</div>

I am using multiple tabs (usually 2 - 3).

No, neither one of those is set.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [November 5, 2020, 7:51pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/6 "2020-11-05T19:51:21Z")

</div>

I'll try to find if they did change it.

But before any tab starts a new session. So if tab 2 is not active for 15 minutes it will shutdown the sessions for tab 1.

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [November 6, 2020, 3:43am UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/7 "2020-11-06T03:43:34Z")

</div>

And just to be sure: This isn't Elastic Cloud but a self hosted cluster, right?

Especially with the new SSO feature from the Cloud UI to Kibana I would expect different session timeouts. (Might not apply to you but others might run into similar issues and end up here 😅)

---

<div class="post-metadata">

**Author:** ![cdy5159](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdy5159/32/115812_2.png) [@cdy5159](https://discuss.elastic.co/u/cdy5159)\
**Post date:** [November 6, 2020, 1:09pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/8 "2020-11-06T13:09:54Z")

</div>

Correct, this is a standalone cluster, not the Cloud.

---

<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:** [December 4, 2020, 1:09pm UTC](https://discuss.elastic.co/t/session-expires-very-fast/254446/9 "2020-12-04T13:09:59Z")

</div>

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