Has anyone figured out how to detect whether a Bubble user is logged in on a non-Bubble domain?
My use case is that my root domain is run on Webflow and I want to automatically redirect users who land on my homepage to my Bubble app subdomain if they are already logged-in.
Any suggestions / tips / approaches welcome!
I don’t think this is possible (or at least is very very difficult) because you’d need to check for the Bubble cookies that confirm the user is logged in. However recently Safari/chrome etc block cross-domain cookie reading so you wouldn’t be able to detect it in Webflow if it’s on a different domain.
Personally I’d say it’s not worth the time to figure out - I looked at this a while ago and it’s easier just to redirect them when they hit your bubble app by having a login/signup button on Webflow that takes you to the relevant Bubble page, where the redirect occurs.
Hope that helps
This may be a dumb approach, but what if your domain went to a Bubble webpage instead, and if the user isn’t logged in, just redirect them to the Webflow page via a “when” worfklow? The Bubble page could be the “logged in” page so if a user is logged in they stay there. Or you could create it as a blank Bubble page with the redirect workflow, which would be pretty fast to load/redirect. If someone logs out of Bubble, then there’s a redirect to Webflow, and of course Webflow would have a login button which redirects to the Bubble login page or popup.
This would work, but not sure how it impacts your SEO.
Thanks @ed727 @help
Yes that works beautifully.
For anyone else that wants to do this.
- Create a new page
- Add the following action on page load
Generate an iFrame - https://www.iframe-generator.com/ with the URL of this new page
Embed the iFrame code in your non-bubble landing page
Separately, curious why the use of Webflow for your landing page.
@ed727 Re: Webflow - I find it much better on the design front, blistering fast page loads, optimised for SEO and built in blog functionality which are all essential for our marketing
Same. I’m using dorik.io for the same reason! Fast as shit initial landing page and can do good SEO. Then redirect to the login and app when appropriate
I would love to use this method to identify the logged in user on every page of the website (is made in Wordpress) so when he launches the chat, the user gets recognized.
How can I do this?
Thanks a lot.
This topic was automatically closed after 70 days. New replies are no longer allowed.