I created a ‘stay logged in’ checkbox to enable the user to stay logged in and prevent automatic log out. It is still having issues. I would appreciate it if someone could take a look at the attached snapshot and provide advice if it is correct.
Hi @bs2537, thanks for reaching out.
I’ve carefully analyzed your question and tried to reproduce it on my side. I would say that using the checkbox might be not the best experience for the user, actually, you can simply use the built-in Bubble state (yes/no) for these fields.
See the screenshot below.
If you choose the option “yes” for the Stay logged in field, this will speed up the login and will display you on the next page, on the other hand when I tried to use the checkbox option I was facing some delays for login. Please try my suggestions and let me know if they helped.
If you meant something else, please share with me more details regarding your setup.
Namely: screenshots and/or screencast of the issue you have (debugger, browser console, etc);
Looking forward to your reply.
Best regards,
Thanks for your help, Igor. The inbuilt yes option after stay logged in field as you showed above was not working for my app and there was automatic logout after few hours if not using the app. Even with the checkbox option I showed above, I am facing similar problems. Are you able to stay logged in with your app on just using the inbuilt ‘yes’ option by Bubble to stay logged in? I used the check box option from this video tutorial. How to Keep Users Logged In to Your App (so they don't get automatically logged out) - YouTube
Hi @bs2537, thanks for your reply.
I’ve tried to reproduce this on my side and after a few hours, the user was still logged in.
According to the Bubble manual, the user should be logged in forever by using cookies from his browser. Please find more information here.
As well if you encounter any issues related to the Bubble editor, I would recommend you contact their support team here. They will guide you with the most recent updates and information related to the login and signup process.
I hope the above will be useful to you.
Best regards,