I am new to streamlit and I have been trying to create a web app, while doing it I came across this issue, where if I reload the page after logging in it throws me back to login page , so I tried adding functions , cookies and what not to improvise this, I finally came with a close to perfect code. But there is an issue, this things runs perfectly on codespaces i.e it has perfect timeout of 15mins as well as it doesn’t throw me out to login page even if I reload or keep reloading. And when I try to do the same thing with main app (from streamlit.io) it throws me back to login page, I maybe missing something but I am attaching the GitHub repo for checking the code if y’all want also a link to my drive where I have posted what is actually happening it would be better if you want to see what I am trying to say.
I would like to know is there any particular reason because of which my session timeout code is not getting executed correctly on main streamlit app.
Sorry I couldn’t interpret my problem correctly, but I have tried my best please check video if you want actual briefing about the issue.
GitHub repo: GitHub - Nasim7045/T7-Securities
Drive link to the problem video: 20240929191327.mp4 - Google Drive