1
1
I'm baking a cookies.txt
file for use with some wget
scripts and can't find a lot of detailed information. Currently, I'm trying to determine the difference between "domain.tld
"-style cookies and ".domain.tld
"-style cookies (with and without leading dot).
I've pulled a bunch of cookies from Firefox's database and there doesn't seem to be any consistency, even within the same domain. For example, this very site sets a cookie named "user
" for the domain "superuser.com" and another called "__qca
" for the domain "**.**superuser.com".
What is the significance of the leading dot? Is it perhaps related to the "can be read by other machines at the same domain" column in cookies.txt
?
I think I see where I was confused; I was focused on the "domains must start with a dot" part of the spec, but if the "
;domain=
" part of theSet-Cookie
header is left off completely, you get a no-leading-dot hostname. Thanks! – Ben Blank – 2009-07-29T00:24:51.427