Keep user in shiny app logged in when refreshing browser

I have implemented the possibility for users to login inside my shiny app in shiny server (so the login is handled by shiny). Now when a user clicks the refresh button of the browser the app is restarted, so the state of the application is lost, meaning the user is not logged in anymore. Is there a simple possibility to keep the user logged in?

I think it could maybe done with cookies, but I really do not know, how to achieve this. Would appreciate if someone can share some code, on how to implement this.

1 Like

give this a try:

1 Like

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