Finally I find a right way to use extra-cookie.manager!

Vow! This is true! I had an issue where fleetingly I would not find the cookies… And then it would suddenly appear after a few seconds…
So my streamlit app would fleetingly display “access denied” and then immediately load the page… So weird!!
I added a time.sleep(2) that fixed it for me. (time.sleep(1) still had issues for my setup. your mileage could vary)
Thank you lorenzweb!