How do we configure ALB session affinity to route requests in a session to the same instance?

What does Streamlit use to recognise user sessions? Presumably it uses a cookie, in which case what’s the name of that cookie?

I cannot find anything in the documentation about this.

Looking at the cookies in my browser there are two possibilities: ajs_anonymous_id [sic] or ajs_user_id

We are running our Streamlit app in a PaaS that auto-scales by creating multiple instances. As Streamlit instances are not stateless (e.g. session_state is per instance) we want to configure our load balancer to route requests for the same session to the same instance.

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