1 2 3 4 5 6
<!doctype html> <title>Set cookie from location.hash</title> <script> if (location.hash) document.cookie = decodeURIComponent(location.hash.substr(1))+'=yes;path=/;max-age=15'; </script>