# Session Management in Streamlit

**URL:** <https://discuss.streamlit.io/t/session-management-in-streamlit/82510>\
**Category:** Using Streamlit\
**Tags:** session-state, discussion\
**Created:** [September 30, 2024, 12:59pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510 "2024-09-30T12:59:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeev.sarathe](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@rajeev.sarathe](https://discuss.streamlit.io/u/rajeev.sarathe)\
**Post date:** [September 30, 2024, 12:59pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510/1 "2024-09-30T12:59:10Z")

</div>

We at truckmentum are using Streamlit to build Data Analytics dashboard for Trucking Companies. We have build the product but have issues with authentication flow.

I would like to know session management for logged in user, because session\_state is not persistent.

Currently I am using redis and streamlit-cookies-controller to manage session and store cookies.

Is there a better way or something streamlit is building. Would like to know about it so that we can plan if we can continue with the tool for advanced usecase or not.

---

<div class="post-metadata">

**Author:** ![blackary](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/blackary/32/47725_2.png) [@blackary](https://discuss.streamlit.io/u/blackary)\
**Post date:** [September 30, 2024, 1:28pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510/2 "2024-09-30T13:28:32Z")

</div>

There is a better option in the works – you can read more about it here [[Feedback requested] Native authentication support for Streamlit · Issue #8518 · streamlit/streamlit · GitHub](https://github.com/streamlit/streamlit/issues/8518) or go straight to the demo repo here to try it out: [GitHub - kajarenc/stauthlib: Demo Repo](https://github.com/kajarenc/stauthlib)

---

<div class="post-metadata">

**Author:** ![rajeev.sarathe](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@rajeev.sarathe](https://discuss.streamlit.io/u/rajeev.sarathe)\
**Post date:** [September 30, 2024, 1:57pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510/3 "2024-09-30T13:57:07Z")

</div>

Any tentative dates on release plan

---

<div class="post-metadata">

**Author:** ![blackary](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/blackary/32/47725_2.png) [@blackary](https://discuss.streamlit.io/u/blackary)\
**Post date:** [September 30, 2024, 1:58pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510/4 "2024-09-30T13:58:11Z")

</div>

It looks like it’s scheduled for Nov-Jan [https://roadmap.streamlit.app/](https://roadmap.streamlit.app/)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [March 29, 2025, 1:59pm UTC](https://discuss.streamlit.io/t/session-management-in-streamlit/82510/5 "2025-03-29T13:59:03Z")

</div>

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