Hello,
I've started playing around a bit with javascript and wanted to try and get the cookie that vB (vBulletin) stored of my username from this forum but I can't seem to get it with getcookie, can someone help me?
Thanks in advance! :)
Printable View
Hello,
I've started playing around a bit with javascript and wanted to try and get the cookie that vB (vBulletin) stored of my username from this forum but I can't seem to get it with getcookie, can someone help me?
Thanks in advance! :)
There are two types of cookies:
session only (which are deleted when u exit ur browser, and can be accesed form every site) and normal cookies which can live for a long time and can be read only from one domain.Thats for security reasons, so the answer is:no, u cant read cookies from another site.
So I can only check cookies that I set?
Yup you can only check th ecookies you have set using getcookie.
However u can read the them like text files if you want to.
But don't they go *comp-username*@*domain*? so it would be quite annoying? :confused:Quote:
Originally posted by veryjonny
Yup you can only check th ecookies you have set using getcookie.
However u can read the them like text files if you want to.
AFAIK, Session cookies (with are really the same as any other cookie, except no expiration date was set) are still limited to the setting domain.Quote:
Originally posted by Barney Calhoun
There are two types of cookies:
session only (which are deleted when u exit ur browser, and can be accesed form every site) and normal cookies which can live for a long time and can be read only from one domain.Thats for security reasons, so the answer is:no, u cant read cookies from another site.