How to merge user data after login?
问题 It doesn't matter if you're building an eshop or any other application which uses session to store some data between requests. If you don't want to annoy the user by requiring him to register, you need to allow him to do certain tasks anonymously when possible (user really have to have a reason for registering). There comes a problem - if user decides to login with his existing profile, he may already have some data in his "anonymous" session. What are the best practices of merging these data