From 43f70b97276700ed879e3375d3575b0e68ade99a Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Fri, 16 Aug 2024 09:59:33 -0700 Subject: [PATCH 1/2] Note other state persistence. --- content/develop/concepts/architecture/session-state.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/develop/concepts/architecture/session-state.md b/content/develop/concepts/architecture/session-state.md index 40eb3d247..a20e554bb 100644 --- a/content/develop/concepts/architecture/session-state.md +++ b/content/develop/concepts/architecture/session-state.md @@ -309,5 +309,6 @@ When `runner.enforceSerializableSessionState` is set to `true`, Session State im Here are some limitations to keep in mind when using Session State: - Session State exists for as long as the tab is open and connected to the Streamlit server. As soon as you close the tab, everything stored in Session State is lost. -- Session State is not persisted. If the Streamlit server crashes, then everything stored in Session State gets wiped +- Session State is not persisted. If the Streamlit server crashes, then everything stored in Session State gets wiped. +- State in other modules also persists. In other words, if you depend on another python file from your python file, it will not be rerun every time your file is. - For caveats and limitations with the Session State API, please see the [API limitations](/develop/api-reference/caching-and-state/st.session_state#caveats-and-limitations). From 3846a912d53643cde392a7de752517fb661835bb Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Fri, 16 Aug 2024 10:02:09 -0700 Subject: [PATCH 2/2] Update session-state.md --- content/develop/concepts/architecture/session-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/develop/concepts/architecture/session-state.md b/content/develop/concepts/architecture/session-state.md index a20e554bb..5b9eb84e5 100644 --- a/content/develop/concepts/architecture/session-state.md +++ b/content/develop/concepts/architecture/session-state.md @@ -310,5 +310,5 @@ Here are some limitations to keep in mind when using Session State: - Session State exists for as long as the tab is open and connected to the Streamlit server. As soon as you close the tab, everything stored in Session State is lost. - Session State is not persisted. If the Streamlit server crashes, then everything stored in Session State gets wiped. -- State in other modules also persists. In other words, if you depend on another python file from your python file, it will not be rerun every time your file is. +- State in other modules also persists for as long as the session. In other words, if you depend on another python file from your python file, it will not be rerun every time your file is. - For caveats and limitations with the Session State API, please see the [API limitations](/develop/api-reference/caching-and-state/st.session_state#caveats-and-limitations).