Thursday 15 July 2010

Simple HTML/JavaScript not saving cookie on harddrive -



Simple HTML/JavaScript not saving cookie on harddrive -

the next code failing result in saved .txt cookie on harddrive @ next location: c:\users\<user>\appdata\roaming\microsoft\windows\cookies

i debug page chrome element inspector , no cookie showing up. there i've misunderstood creating simple cookie?

<!doctype html> <html> <body> <script> document.cookie="username=test cookie; expires=thu, 18 dec 2020 12:00:00 utc"; alert("done"); </script> </body> </html>

you're looking in folder net explorer's cookies, not chrome's cookies.

browsers may not back upwards cookies documents opened file:// uris.

javascript html cookies

No comments:

Post a Comment