New answers tagged http-headers
Your code to set the cookie is valid but the browser will only pass the cookie to sites in your own domain. You may also want to set an expires date (otherwise gone when browser closes) and set the path to the root of your domain (otherwise only goes to your page). document.cookie = "referrer=" + window.location.origin + '; expires=' + ...
Top 50 recent answers are included