I’m using streamlit app on VDI machine and hosted it on another windows VDI with huge memory and RAM . Now the network URL that is obtained when launching the app is shared across multiple users.
All the users are on same VDI network
The cross talk and closure of database connections exists in this scenario since Session state doesn’t work on this network URL
I don’t understand your premise that session state doesn’t work on a network url…
Each tab used to accessed your app will have its own session state. This is true whether those tabs are on different clients or even if they are in the same browser on the same client.
Now if you are dealing with database connections, you will certainly need to be mindful of how you are opening/closing those connections, especially when you have multiple users. You’ll need to share some information about what exactly is giving you problems. Please share your code and any error messages you are getting. (Be careful not to share your credentials, but please share enough code for us to see what/how you are connecting so we can understand how the app initializes and what the app is doing when it reruns from user activity.)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.