hi there i visit a site and it set a cookie on my computer. i want to know is there any way that i can access to it? i want to know value and the name of it. how it set it, i mean it must some data to me, so can i get them? could i use form : var oXmlHttp = zXmlHttp.createRequest(); oXmlHttp.open("get", "info.txt", true); oXmlHttp.send(null); displayCustomerInfo(oXmlHttp.response[/XML]); ... thank you
You cannot access a cookie from another domain from a website. It's a security restriction that is built-in to Internet Explorer / Firefox / Etc. Otherwise a website could read all of the cookies on your computer and see everywhere you've been. Security would become a complete pain because session hijacking would be too easy. It may be possible with an activeX control or a 3rd party application, but there's no built-in way to read other website's cookies.
If the question is how do you know all cookies that are stored in your computer from yahoo,com, google,com, etc etc. You can use FireFox (use the latest one lol). Go to Tools > Options > Privacy > Cookies Click "Show Cookies" button.