Shouldn't cookies only be readable (well, sent by your browser) to the originating domain?
You would think right? ...but that is not how it is. The doctrine has always been that cookies are generally public to anyone and you encrypt or hash the contents for security. This is because otherwise you would need some form of trusted authentication like ssl certs that can validate identity of the domain
I can't think of a good reason to have a cross domain cookie. If foo.com is a partner of bar.com or whatever, and you have to login twice that seems reasonable.
Having the cookie be just a hash for a session id sounds smart.
I don't know much about website development. I know basic HTML, and I've had to interpret and modify bits of javascript before. That's about it.
(post is archived)