Session Management in Streamlit

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.

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 or go straight to the demo repo here to try it out: GitHub - kajarenc/stauthlib: Demo Repo

Any tentative dates on release plan

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

1 Like