Hi @IndigoJay
There are previous related post as follows tackling the same issue of user inactivity timeout:
Summary
How do I make my streamlit webapp timeout after certain time of inactivity by user on Windows & Unix systems.
Expected behavior:
User opens the webapp, leaves the tab running with no activity for some time. Streamlit script should close (st.stop() maybe) after a certain amount of time.
Debug info
Streamlit version: 1.27.0
Python version: 3.7.6
Using Conda? PipEnv? PyEnv? Pex?
OS version: Windows 10
Browser version: Chrome 83.0.4103.116
Additional information
Since I couldnt find any…
Summary
There is not adequate information on the working session state. I want to create a session state time-out function for inactivity. Please share your views on this
Steps to reproduce
Code snippet:
add code here
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Expected behavior:
Explain what you expect to happen when you run the code above.
Actual behavior:
Explain the undesired behavior or error you see when you run the code abo…
Another approach could be to reset important session state variables of the app after a certain amount of time has elapsed if there were no changes made to those session state variables.
1 Like