I have some questions about how session state works:
When you store something in session state, if it stored locally on the users’s side?
Do the values used in the session state affect the resources limit of 1GB?
When are the session state values removed and stop affecting the resource limits? When the user closes the tab?
Do we have to make sure to delete the session state values manually or are they removed automatically? I’m just concerned about the resource limit.
Thanks, @Goyo ! I appreciate all the answers. I’m still not sure what you mean by
you might want to delete something before that
Should I do del st.session_state [key]
or should I just let the user close the tab and hope that the state session stuff is cleared?
Goyo
February 19, 2023, 12:35am
4
Session data will be automatically deleted after the session ends, but you can do it before if you want. I have never done that, but I guess there may be use cases where it makes sense.
@Goyo Gotchu. That makes sense. I’m just trying to navigate how the resource limit would scale wrt session states. Your answer helps. Thanks!