Loading URL parameters to session state

Hi
I just built a dashboard with Streamlit and really like how it turned out. Great library!

Since I’m doing different analysis with it and many parameters (components) have to be specified (e.g. date range to analyze and much more) I’d like a way to save my current parameters that are stored in session state and be able to load them another time.

My idea: I use the URL with GET parameters because then I can easily share and bookmark the configuratuion. So what I need is to print all the session state variables to the URL and load them (if they are provided) when loading the dashboard.

Any idea how this can be done? There are some discussions about that here but most from a time when session state was not a thing yet.

It would be extremely helpful to get some insights how this could be done.
Best
Berny