Resetting session_state during page transition


Is there a way to detect page transitions in multi-paging?
I want to reset the content I have stored in the session state every time a page transition occurs, so I’d like to detect when the page change takes place.

Hi @fonce125

Have you looked into st.rerun() which can trigger the app to re-run from the top again.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.