I want to do, for example, on Saraiva's website:
When doing a search (eg "Hitchhiker's Guide to the Galaxy") the url is directed to a smart search url:
They are totally different but identical sites, and they import the information of Name, Cart, Products in the Cart, State and any information relevant to purchase from one site to another.
My question is how do they do this, I've been researching and seen about cookies, but I'm having some difficulties understanding the concept and applying some practical example to see how it would be, is there any way to help me to better understand how it works? Or how do I set up a cookie with the data I need to transfer?