To test this problem, bookmark this link, this link and this link into a single bookmark folder.
Each link will run the same code, but the URLs differ to prevent any caching messing up the test. Open all 3 links via the Open In Tabs menu item in the folder.
Test cookie value: "" (clear)