Hello,
Probably a simple question, and I could also test it relatively easy with some programming changes, but I wanted to task this question more as a "sanity check" and an opportunity to learn a bit more about these methods before I spent time modifying code.
The WebAPI has a method "TransferCart" that is typically used to support the normal situation where people shop for performances, then once they've decided they actually want to purchase, they then sign in. The TransferCart method re-associates their cart items with the new account that has been associated with their Session upon login. This works as described in the documentation.
But what if someone logs out? Should I assume they should just lose their cart too? This is what currently happens on our site, and I think it is somewhat harsh if someone is confused and logs-out without thinking it through first. So, is it OK to use the "TransferCart" method when someone logs out via "Logout" method? Should this re-associate the current Session's cart items back to the Anonymous account for this session? Will it be the same as if they had selected items to their cart before the logged in and we did a "TransferCart" to their newly associated Account?
What are the risks in doing this? Thanks for any input.