How to attach anonymous data to existing user after they log in?

Someone (@berksngn1 ) just liked this post for the first time in a while, so I’d point out that, if I were doing this today, I’d use my Floppy plugin to do this in a more Bubble-friendly way.

(Also, in today’s browser landscape, this is a task better suited to sessionStorage or localStorage, which is primarily [but not exclusively] what Floppy provides. sessionStorage, for example survives a page refresh in the same window – as in my example where I needed to recover some Thing after logging in with Facebook (and then, when the session closes, that stored value just magically goes away). While remembering this with a cookie is OK - and still works - in today’s world we would just put that value in the browser’s own storage and read it back on page refresh.)

3 Likes