When you visit a domain, the web server sends a cookie to your device or computer which is then stored by your browser. Every time you visit that domain, your browser passes that same cookie back to the server to identify you. It then delivers an experience tailored to your previous browsing history.