I’m looking for the best practices regarding user login and temporary information storage in ecommerce apps (I’m developing one). I’m a bit puzzled as the requirements are contradictory. Any advice is highly appreciated.
From ecommerce perspective, it is better to defer user login as far as possible (ideally - avoid it at all). User should not be forced to enter login, password etc. at the beginning - it’s better to create the account later during checkout.
But from App perspective (meaning Adalo app), app has to store the information somewhere. So in most of the examples I’ve seen the info about shopping cart, items, etc. is related to “Users” collection and connected to specific user.
And here comes my question: are there any known best practices how to match these two approaches? Any way to store some information (shopping cart for example) BEFORE logging the user in? Or may be any way to autocreate the accounts for the users?
I’ve found some workarounds, for example, specific “Session” collection with auto-generated session IDs, where I can store temporary info. But I don’t want to reinvent the wheel - therefore asking for advice.
Thanks a lot!