Resetting session_state during page transition

Hello

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.