Session timeout

Summary

I have a streamlit app that shows a dashboard and contains login, however I just want to have a session timeout that means if a user logged in and not logged out the the session should end in 30 minutes. i.e. if 30 minutes passed then logout should be done, go to login again.

another issue is there a way to prevent simultaneous login, i.e a user can not logged in in multiple ttabs, I already did it using an external file to check if a user is logged in or not, but the issue i need to detect if the user close the browser tab.

  • Streamlit version: 1.9.0
  • Python version: 3.7
  • OS version: linux, ubuntu 22
  • Browser version: chrome

Hey @Abubakr_Baras,

Thanks for sharing your question! Please update your question to include a code snippet that demonstrates how you’ve tried to implement both of these functionalities so far – this will enable our community to make helpful suggestions :smiley:

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