Two people on same session state

Hi there,

I had the same problem with interference between sessions in Streamlit v0.65/v0.66 and found a problem in the SessionState from https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92 . The problem is that the “Hack to get the session object from Streamlit” is based on the UploadedFileManager, which seems to be a singleton. Hence, all tabs/users are mapped to the exact same session.

I forked @thiago’s gist and changed it to work with Streamlit >= v0.65:

The idea was described by @Synode :clap:t2:.

With this SessionState the examples from @ch.morton and @Juan work as expected :ok_hand:t2:! Can you confirm that?

11 Likes