Hyperlink to another streamlit page and preserving session_state variables

I’m trying to use custom tab menus to navigate a multipage Streamlit app using hyperlinks with QueryParams such as http://localhost:8080/?menu=Home. My HREFs are simply β€œ/?menu=[NextPage]”. The idea is to bring up different pages based on the QueryParam β€œmenu”. I have this mostly working but I am unable to preserve Session State variables across these HREF page calls. I need Session State to help with an authentication effort.

Is there another way of invoking hyperlinks that would preserve Session_State variables or is there a way to request Streamlit to preserve it’s environment somehow?

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