Click to See Complete Forum and Search --> : document.cookie


newinjs
09-27-2003, 11:50 AM
Hi,

I am new to javascript.

I saved the following code as a file called experiment.html

<html>
<head> <title> </title> </head>
<body>

<script>
document.write(document.cookie);
</script>

</body>
</html>

when I load experiment.html in the browser (IE), I get the following output:

userID; userPIN

my question is:
how come I get this output eventhough I didn't set any cookie? where does "userID; userPIN" string come from !!!???

Khalid Ali
09-27-2003, 12:04 PM
its probably reading some older cookie saved on your pc using the same domain where u are