# User session/ search query is not restored on re-login

**URL:** https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [March 19, 2019, 4:54pm UTC](https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021 "2019-03-19T16:54:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)
#### Post date: [March 19, 2019, 4:54pm UTC](https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021/1 "2019-03-19T16:54:39Z")

</div>

I have recently upgraded Elastic stack (EFK) from 5.4.2 to 6.2.3 successfully.

In Kibana version 5.4.2, while querying for some data in Discover, if I was logged out and had to re-login, the previous query will still be requested and corresponding data was loaded.

However, post upgrade, if my session is closed and I have to re-login, my previous session and state is lost, i.e. I have to browse to Discover again from APM, select the index pattern and search for the data again.

There is absolutely nothing stored from previous session which gets annoying if I'm querying data over multiple fields on an index pattern.

I have already re-checked all the Kibana Advanced Settings and there are no discrepancies there, am I still missing anything here ? I would just like to restore the previous session/ request which was fired before I was kicked off and logged out.

Thanks,  
Ayush

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [March 20, 2019, 3:23pm UTC](https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021/2 "2019-03-20T15:23:51Z")

</div>

Looks like this is a known issue. You can track updates here: [https://github.com/elastic/kibana/issues/22440](https://github.com/elastic/kibana/issues/22440)

---

<div class="post-metadata">

### Author: ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)
#### Post date: [March 20, 2019, 5:43pm UTC](https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021/3 "2019-03-20T17:43:25Z")

</div>

Thank you @lukas 🙂

---

<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 17, 2019, 5:53pm UTC](https://discuss.elastic.co/t/user-session-search-query-is-not-restored-on-re-login/173021/4 "2019-04-17T17:53:10Z")

</div>

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