Have you tried simply saving it with the user? Bubble does not expose “low level” concepts like sessions and cookies, but apparently saving data against the user object - logged in or not - should work. I have not tried it, but I’d be curious to know if it works for your situation.
I found the following posts informative…