Keep User Logged In

Hello, when a user logs into their account on my system bubble automatically logs them out after I believe 24 hours. I would like for this not to be the case and for users to be logged in indefinitely once logged in unless they click logout.

I currently sign my users up and then provide them with their email and password. The user can then proceed to my website to log in. I use the login/signup elements that bubble provides. I know that there is a stay logged-in option in workflow however, it does not seem to work. Could the issue be the order of where my stay logged in element is on the workflow or does that not make a difference? I would love assistance with this, I have attached screenshots of my current stay logged-in workflow.

Screenshot 2023-11-02 at 12.58.56 AM

Not that this should make for a difference, but are you removing the email validation from the default email field (since you apparently are using a username or phone number)?

The order of the login is fine. How do you know it logs user out after 24 hours? Is that based on you testing it on your computer? Are you already logged in before this step? (try logging out before logging in) Are you using incognito mode?

Yeah, are you sure you are logged out? On the login page, maybe you can have a workflow that says, when the user is logged in, take them to the page you want them to be on. Anyways, just a thought. Something to double check. :blush:

Or if user is logged in in login WF you can first log them out if you want to change the duration of their session (e.g., stay logged in)

Thats a great suggestion that I did not think about. I have implemented this and will test it out

1 Like