My previous question about the same subject has given me 8 negative votes. I hope now to be clearer. If you run
document.cookie ='ppkcookie1=testcookie;';alert(document.cookie);
on any web page the content of the cookie appears in the message box. if you run the code above inside a very simple data-uri page (you could copy and paste the following string on the address bar in FF or Chrome, since IE does not support it)
data:text/html;charset=utf-8,<h1>hi people</h1><script>document.cookie='ppkcookie1=testcookie;';alert(document.cookie);</script>
the message box is empty
Does this mean that cookies cannot be used on data-uri pages or there is some errors in my piece of code?
hi people
` – tic Jul 05 '12 at 13:49