My website is an e-commerce where users can add items to their carts. Each user has a cart even if he/she doesn't login (i.e. a guest user). I would like to identify the guest users by put some kind of key
to their cookies.
I wonder if Spring Framework can handle this already?
If that is not the case, I have to implement it myself but I am not sure about the key
to put in the cookies. I know about HMAC
but the key need to be unique, right? What is the algorithm should I use to generate the key
in this case?