Cookies set by Bubble
What are cookies?
Cookies are small pieces of data that apps and websites store in a user's browser. They let an app save information on the user's device and read it again later, for example when the user comes back the next day. That makes a range of useful features possible:
Remembering information
Store details like a remembered email address or preferences such as language and currency, without the user needing to create an account or log in.
Session management
Keep track of a user's activity while they use the app, so they can stay logged in as they move between pages or keep items in a shopping cart.
Tracking and analytics
Collect data on how people use a site, so its owners can analyze behavior, improve the user experience, and show more relevant content.
Security
Help authenticate users and protect against unauthorized access or fraudulent use of login credentials.
Cookies across browsers and devices
Cookies are stored by the browser, so they don't follow a user from one browser or device to another. For example, if a visitor who isn't logged in picks a language in your app on their laptop, that choice is only saved in that browser. If they open your app on their phone, or in a different browser on the same laptop, they'll need to pick it again.
Cookies can also be deleted, either by the user or automatically by the browser as part of its storage or privacy settings.
Types of cookies in a Bubble app
The cookies in a Bubble app fall into two categories:
Cookies set by Bubble
Bubble, to handle users and logins
With an app setting and two workflow actions. See Bubble's default cookies.
Third-party cookies
Plugins, analytics services, custom code, and embedded content
Depends on the service. Bubble can't control them.
Third-party cookies
Other services can add cookies to a user's device too. If you add an analytics service like Google Analytics, for example, whether through a plugin or a code snippet, that service may set cookies of its own. The same goes for things like embedded videos, chat widgets, and payment forms.
Bubble can't give you control over cookies that a plugin or another service sets. If that matters for your app, install the plugin and test it in run mode to see which cookies it adds. That can help you decide whether it fits your privacy and data management requirements.
Bubble's default cookies
By default, Bubble sets a few essential cookies for every visitor to your app. They're used for authentication and key platform features, such as keeping a user logged in and linking a visitor's data to their account when they sign up.
Session ID
Identifies the user's session.
Session signature
Protects the session from being tampered with.
User identifier
Identifies the logged-in user for authentication.
These cookies are also what lets Bubble create a temporary user for visitors who haven't signed up yet, so you can store things like a shopping cart before they create an account.
Article section: Temporary users
Disabling Bubble's default cookies
You can stop Bubble from setting cookies on new visitors with the Do not set cookies on new visitors by default setting. It's off by default, and you need to turn it on for each app separately.
Keep in mind that turning off the default cookies can limit how your app works for visitors who haven't logged in:
No temporary users for new visitors
Data you save on the current user before they log in only lasts until they close the browser tab.
No transfer of data on signup
You can't carry data, such as the items in a shopping cart, over to the user's new account when they sign up.
Bubble still sets its cookies in these situations:
The Opt-in to cookies action runs
Bubble sets its cookies and creates a temporary user, just as it would have automatically, but only for the visitor who triggered the action.
The user signs up or logs in
Bubble can't keep a user logged in without cookies, so it sets them regardless of the setting.
To remove Bubble's cookies again, use the Opt-out from cookies action. It deletes the cookies Bubble has set and logs the user out if they're logged in.
Together, the setting and the two actions let you build your own cookie consent flow. For example, you can show a consent banner to new visitors and run Opt-in to cookies or Opt-out from cookies depending on what they choose. Keep in mind that these actions only cover Bubble's own cookies, not cookies set by plugins or other services.
Reference: Account actions
Default cookies and app performance
Setting cookies on a new visitor takes a small amount of server-side and client-side work, which slows the page load down slightly. The difference is small, but turning the default cookies off may still be worth considering if your app:
Doesn't need cookies for visitors who aren't logged in (see what changes above)
Depends on the fastest possible page load, for example for SEO
Gets a lot of traffic, and you want to keep workload as low as possible
Keep your users in mind: turning off the default cookies can make your app slightly faster, but it may come at the cost of the user experience.
Default cookies and regulations
Laws in many regions regulate how websites and apps use cookies. In the EU, for example, the ePrivacy Directive and GDPR set rules for when you need a user's consent. Many of these rules treat cookies that are strictly necessary for an app to work differently from cookies used for things like analytics or marketing.
We recommend reading up on the rules that apply to your app, your industry, and your users' regions, and remembering that cookies set by plugins and other services count too.
Article series: Compliance
Cookies and subdomains
If you move your app to a subdomain, your users may run into login problems, such as errors saying "incorrect credentials" or "session expired."
This usually happens because the existing cookies for the old domain conflict with the new subdomain. To fix it, your users need to clear your app's cookies in their browser.
Clearing your app's cookies
To clear the cookies for your app, a user can follow the steps below. The exact steps vary slightly from browser to browser.
Clearing cookies is usually only needed after you've changed your app's domain. Letting your users know about the change ahead of time can help avoid confusion.
FAQ: Cookies set by Bubble
Last updated
Was this helpful?
